Added opensync 0.4x to "config all" script
[barry.git] / snapshot.sh
blob0c7e57f8775c56245dd75a6d5d4ddd1975077ccc
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)
27 echo
28 echo "***********************************************************"
29 echo " Remember to update the OBS RPM spec file with a new"
30 echo " Release date, as well as updating it with any changes"
31 echo " in the git tree since the last update."
32 echo "***********************************************************"
33 echo