debian: added copyrights for the spanish and french translators
[barry.git] / maintainer / deb-src-create.sh
blob222309ce5439a7c8a3a9174a81ae139690856408
1 #!/bin/bash
3 if [ -z "$1" -o -z "$2" -o -z "$3" ] ; then
4 echo
5 echo "Usage: ./deb-src-create.sh LOGICAL MAJOR MINOR"
6 echo
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"
10 echo
11 echo "This script expects a barry-\$LOGICAL.\$MAJOR.\$MINOR directory"
12 echo "to exist in the directory it is run in."
13 echo
14 exit 1
17 DIRNAME="barry-$1.$2.$3"
18 LOGICAL="$1"
19 MAJOR="$2"
20 MINOR="$3"
22 set -e
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
32 rm -rf $DIRNAME
33 mv $DIRNAME.patched $DIRNAME
34 dpkg-source -b $DIRNAME
35 debsign -kB6C2250E barry*.dsc