Initial commit of external build and maintenance scripts
[barry.git] / snapshot.sh
blob26b691bfde49269f015906c59f40621a1a74fdc1
1 #!/bin/sh
3 # Meant to be run from within a git repository.
5 set -e
7 # Do a little dance to find the full path to debian-snap.sh
8 SCRIPTDIR="$(cd "$(dirname "$0")" && pwd)"
10 cd maintainer
11 ./git-extract.sh $1 $2 $3
12 (cd build/barry* && "$SCRIPTDIR/debian-snap.sh" $1 $2)
13 (cd build/barry* && "$SCRIPTDIR/rpm-snap.sh" $1 $2)
14 (cd build/barry* && ../../tar-prepare.sh)
15 (cd build && ../tar-create.sh $1 $2)
17 echo
18 echo "***********************************************************"
19 echo " Remember to update the OBS RPM spec file with a new"
20 echo " Release date, as well as updating it with any changes"
21 echo " in the git tree since the last update."
22 echo "***********************************************************"
23 echo