gui: get rid of compile warnings for chdir()
[barry.git] / maintainer / release.sh
blobf96f6ab8ab48bf8a736bf24bbd7360017a01266d
1 #!/bin/sh
3 if [ -z "$1" -o -z "$2" -o -z "$3" -o -z "$4" ] ; then
4 echo
5 echo "Usage: ./release.sh LOGICAL 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 echo "Example: ./release.sh 0 17 0 master"
14 echo
15 exit 1
18 set -e
20 export CHOWNUSER="$(whoami)"
22 # Create the tarball
23 ./git-release-tar.sh $1 $2 $3 $4
25 # Build as root first, so all prompts are finished at the start,
26 # for the chroot systems...
27 su - -c "cd $(pwd) && ./release-root.sh $1 $2 $3 '$CHOWNUSER'"
29 # Build Debian packages in /usr/src/barry-version
30 ./make-deb-local.sh build/barry-$1.$2.$3.tar.bz2 $1 $2 $3 debian