Removed old branches from git-push-all.sh
[barry.git] / snapshot.sh
blobed786c911db14308ca2e57fb707ec2faf15601aa
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 mkdir -p build
21 (cd build && ./git-extract.sh $1 $2 $3)
22 (cd build/barry* && "$SCRIPTDIR/debian-snap.sh" $1 $2)
23 (cd build/barry* && "$SCRIPTDIR/rpm-snap.sh" $1 $2)
24 sleep 2s
25 (cd build/barry* && ../../tar-prepare.sh)
26 (cd build && ../tar-create.sh $1 $2)
27 (cd build && ../deb-src-create.sh $1 $2)
29 echo
30 echo "***********************************************************"
31 echo " Remember to update the OBS RPM spec file with a new"
32 echo " Release date, as well as updating it with any changes"
33 echo " in the git tree since the last update."
34 echo "***********************************************************"
35 echo