3 if [ -z "$1" -o -z "$2" -o -z "$3" ] ; then
5 echo "Usage: ./deb-src-create.sh LOGICAL MAJOR MINOR"
7 echo "LOGICAL is the desired logical version number"
8 echo "MAJOR is the desired libmajor version number"
9 echo "MINOR is the desired libminor version number"
11 echo "This script expects a barry-\$LOGICAL.\$MAJOR.\$MINOR directory"
12 echo "to exist in the directory it is run in."
17 DIRNAME
="barry-$1.$2.$3"
24 # Create Debian source package, by creating a patched and "orig" set of trees.
26 # The following dance is to keep the .orig.tar.gz containing barry-0.17.0/
27 # as the directory, and not something like barry-0.17.0.orig/ which gets
28 # corrected by Debian tools. If there is a better way, please send a patch.
29 cp -a $DIRNAME $DIRNAME.patched
30 rm -rf $DIRNAME/debian
31 tar -cf - $DIRNAME |
gzip -9c > barry_
$LOGICAL.
$MAJOR.
$MINOR.orig.
tar.gz
33 mv $DIRNAME.patched
$DIRNAME
34 dpkg-source
-b $DIRNAME barry_
$LOGICAL.
$MAJOR.
$MINOR.orig.
tar.gz