Updated buildgen.sh's clean option to remove gui/config.rpath
[barry.git] / maintainer / release.sh
blob1490ef73989a4a7711ac5262fb850a57c063ce39
1 #!/bin/sh
3 if [ -z "$1" -o -z "$2" -o -z "$3" ] ; then
4 echo
5 echo "Usage: ./release.sh MAJOR MINOR commit"
6 echo
7 echo "Creates the release tarball from git sources, tests the compile"
8 echo "on local machine, fedora4, fedora5, fedora6."
9 echo
10 echo "Note: You may wish to direct the output to a file, for"
11 echo " later examination."
12 echo
13 exit 1
16 set -e
18 # Create the tarball
19 ./git-release-tar.sh $1 $2 $3
21 # Build as root first, so all prompts are finished at the start,
22 # for the chroot systems...
23 su - -c "cd $(pwd) && ./release-root.sh $1 $2"
25 # Build Debian packages in /usr/src/barry-version
26 ./make-deb-local.sh build/barry-$1.$2.tar.bz2 $1 $2 debian