Split GetStatus JVM command.
[barry/progweb.git] / maintainer / tar-create.sh
blob279006a859b6953496660bb80b6be36b8d68cae1
1 #!/bin/sh
3 if [ -z "$1" -o -z "$2" ] ; then
4 echo
5 echo "Usage: ./tar-create.sh MAJOR MINOR"
6 echo
7 echo "MAJOR is the desired major version number"
8 echo "MINOR is the desired minor version number"
9 echo
10 echo "This script expects a barry-\$MAJOR.\$MINOR directory"
11 echo "to exist in the directory it is run in."
12 echo
13 exit 1
16 DIRNAME="barry-$1.$2"
17 MAJOR="$1"
18 MINOR="$2"
20 set -e
22 # Create official release tarball
23 tar -cvf - $DIRNAME | bzip2 -9c > barry-$MAJOR.$MINOR.tar.bz2