- added website docs to doc/www... these are out of date at the
[barry.git] / maintainer / make-deb-local.sh
blobf2b8a85b383d821aaee29634591d8ba11e5fd194
1 #!/bin/sh
3 if [ -z "$1" -o -z "$2" ] ; then
4 echo
5 echo "Usage: ./make-deb-local.sh tarball target_name"
6 echo
7 echo "Extracts tarball in temporary directory and builds Debian"
8 echo "packages based on the internal debian scripts. Assumes"
9 echo "that it is running on a development Debian system."
10 echo
11 echo "target_name is the directory under build/ that the .deb"
12 echo "files will be placed into."
13 echo
14 exit 1
17 TARPATH="$1"
18 TARNAME=`basename "$TARPATH"`
19 TARGET="$2"
21 set -e
23 mkdir "build/$TARGET"
24 cp "$TARPATH" "build/$TARGET"
25 cd "build/$TARGET"
26 tar xjvf "$TARNAME"
27 rm -f "$TARNAME"
28 cd barry*
29 debian/rules build
30 fakeroot -- debian/rules binary