Split GetStatus JVM command.
[barry/progweb.git] / maintainer / tagged-release.sh
blobe9d085a9852b4450ceed471190f8f2d48451f95d
1 #!/bin/sh
3 if [ -z "$1" -o -z "$2" ] ; then
4 echo
5 echo "Usage: (from inside root of git repo)"
6 echo " maintainer/tagged-release.sh MAJOR MINOR"
7 echo
8 echo "Creates the release tarball from git sources, tests the compile"
9 echo "on local machine, and available chroots."
10 echo
11 echo "See the help on git-tagged-release.sh for more detailed info."
12 echo
13 echo "Note: You may wish to direct the output to a file, for"
14 echo " later examination."
15 echo
16 exit 1
19 set -e
21 # Create the tarball
22 maintainer/git-tagged-release.sh $1 $2
24 # Checkout the tag we're building with
25 git checkout barry-$1.$2
27 cd maintainer
29 # Build as root first, so all prompts are finished at the start,
30 # for the chroot systems...
31 su - -c "cd $(pwd) && ./release-root.sh $1 $2"
33 # Build Debian packages in /usr/src/barry-version
34 ./make-deb-local.sh build/barry-$1.$2.tar.bz2 $1 $2 debian