lib: added DeviceBuilder class, which...
[barry.git] / maintainer / release.sh
blob768432b2a866dc3f56286bfbf57a85d4abeadd76
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 exit 1
16 set -e
18 export CHOWNUSER="$(whoami)"
20 # Create the tarball
21 ./git-release-tar.sh $1 $2 $3 $4
23 # Build as root first, so all prompts are finished at the start,
24 # for the chroot systems...
25 su - -c "cd $(pwd) && ./release-root.sh $1 $2 $3 '$CHOWNUSER'"
27 # Build Debian packages in /usr/src/barry-version
28 ./make-deb-local.sh build/barry-$1.$2.$3.tar.bz2 $1 $2 $3 debian