- removed usb_set_configuration() check from bcharge.cc, since
[barry.git] / maintainer / release.sh
blobc75f31c07460890d789efd60fddfa5425da2a61c
1 #!/bin/sh
3 if [ -z "$1" -o -z "$2" ] ; then
4 echo
5 echo "Usage: ./release.sh MAJOR MINOR HEAD"
6 echo
7 echo "Set the environment var CVSROOT to use a different repository."
8 echo "Set CVSREP to a different directory if needed."
9 echo
10 echo "Creates the release tarball from CVS sources, tests the compile"
11 echo "on local machine, fedora4, fedora5, fedora6."
12 echo
13 exit 1
16 set -e
18 # Create the tarball
19 ./make-release-tar.sh $1 $2 $3
21 # Make sure it compiles cleanly on all handy systems
22 # Local first...
23 ./test-build-local.sh build/barry-$1.$2.tar.bz2
24 ./make-deb-local.sh build/barry-$1.$2.tar.bz2 debian
26 # Then as root, for the chroot systems...
27 su - -c "cd $(pwd) && ./release-root.sh $1 $2"