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:"
8 echo " snapshot.sh MAJOR MINOR commit"
10 echo "Results will be located in maintainer/build"
16 # Do a little dance to find the full path to snapshot.sh
17 SCRIPTDIR
="$(cd "$
(dirname "$0")" && pwd)"
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)
25 (cd build
/barry
* && ..
/..
/tar-prepare.sh
)
26 (cd build
&& ..
/tar-create.sh
$1 $2)
27 (cd build
&& ..
/deb-src-create.sh
$1 $2)
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 "***********************************************************"