2
# Make a snapshot of the CVS head revision
4
exec >>/home/koch/mksnapshot.log 2>&1
6
echo "Started at `date`."
12
PATH="$HOME/bin:$PATH"
15
version=$(cat $1/VERSION)
16
echo "$version-snap$(date +%Y-%m-%d)" >$1/VERSION
17
cat <<EOF >$1/SNAPSHOT
20
This is a snapshot of the current CVS head branch!
22
It may not compile or not work. Please don't report
23
bugs about this snapshot release it is just for your
24
convenience and to reduce the load of out CVS server.
34
nice scripts/autogen.sh && nice ./configure && nice make dist
36
/^diff gnupg-snapshot\/VERSION/ { getline; getline; getline; getline; next }
37
/^Common subdirectories:/ { next }
41
# Okay, we have some changes and it is not only the version number
42
rm $ftp_dir/gnupg-*snap*-*-*.tar.gz
43
mv gnupg-*.tar.gz $ftp_dir/
55
rm -rf $pgm.new || true
56
rm -rf $pgm.old || true
57
cvs -Q export -r HEAD -d $pgm.new $mod
59
if [ -n "$ftp_dir" ]; then
65
[ -d $pgm ] && mv $pgm $pgm.old
66
if ! mv $pgm.new $pgm ; then
67
echo "rename failed - restoring" >&2
71
rm -rf $pgm.old || true
75
do_export gnupg-snapshot gnupg
77
echo "Ended at `date`."