tzwrapper.cc: fixed use of iterator after erase
[barry.git] / maintainer / release-tar.sh
blob890c9dece3459b73e2c33c15977affd2848347b4
1 #!/bin/bash
3 if [ -z "$1" -o -z "$2" -o -z "$3" -o -z "$4" -o -z "$5" ] ; then
4 echo
5 echo "Usage: ./release-tar.sh builddir LOGICAL MAJOR MINOR commit"
6 echo
7 echo "Creates the release tarball from git sources, using the directory"
8 echo "builddir."
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-tar.sh barrybuild 0 17 0 master"
14 echo
15 exit 1
18 set -e
20 BUILDDIR="$1"
21 LOGICAL="$2"
22 MAJOR="$3"
23 MINOR="$4"
24 COMMIT="$5"
26 mkdir -p "$BUILDDIR"
28 # Create the tarball
29 if [ -f $BUILDDIR/barry-$LOGICAL.$MAJOR.$MINOR.tar.bz2 ] ; then
30 echo "Tarball already exists... not creating again."
31 sleep 2s
32 else
33 ./git-release-tar.sh "$BUILDDIR" $LOGICAL $MAJOR $MINOR $COMMIT
36 echo
37 echo "release-tar.sh done"