Added boost support to the configure-all test
[barry.git] / snapshot.sh
blob145b8b47e233888be0a9bffd575c04de01e81cd1
1 #!/bin/sh
3 # Meant to be run from within a git repository.
5 if [ -z "$1" -o -z "$2" -o -z "$3" ] ; then
6 echo "Usage: run from within a git repository, as:"
7 echo
8 echo " snapshot.sh MAJOR MINOR commit"
9 echo
10 echo "Results will be located in maintainer/build"
11 exit 1
14 set -e
16 # Do a little dance to find the full path to snapshot.sh
17 SCRIPTDIR="$(cd "$(dirname "$0")" && pwd)"
19 cd maintainer
20 ./git-extract.sh $1 $2 $3
21 (cd build/barry* && "$SCRIPTDIR/debian-snap.sh" $1 $2)
22 (cd build/barry* && "$SCRIPTDIR/rpm-snap.sh" $1 $2)
23 sleep 2s
24 (cd build/barry* && ../../tar-prepare.sh)
25 (cd build && ../tar-create.sh $1 $2)
26 (cd build && ../deb-src-create.sh $1 $2)
28 echo
29 echo "***********************************************************"
30 echo " Remember to update the OBS RPM spec file with a new"
31 echo " Release date, as well as updating it with any changes"
32 echo " in the git tree since the last update."
33 echo "***********************************************************"
34 echo