summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>1999-01-09 18:59:58 +0100
committerWerner Koch <wk@gnupg.org>1999-01-09 18:59:58 +0100
commit11c378119d2415fb8354c30fff77c8d84f3c1b5e (patch)
tree52cb9a4dc07ce697dd269ce259d12c209943b120 /scripts
parentSee ChangeLog: Sat Jan 9 16:02:23 CET 1999 Werner Koch (diff)
downloadgnupg2-11c378119d2415fb8354c30fff77c8d84f3c1b5e.tar.xz
gnupg2-11c378119d2415fb8354c30fff77c8d84f3c1b5e.zip
See ChangeLog: Sat Jan 9 18:54:57 CET 1999 Werner Koch
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/mksnapshot51
-rwxr-xr-xscripts/mkwebpage47
2 files changed, 98 insertions, 0 deletions
diff --git a/scripts/mksnapshot b/scripts/mksnapshot
new file mode 100755
index 000000000..0d7a94d32
--- /dev/null
+++ b/scripts/mksnapshot
@@ -0,0 +1,51 @@
+#!/bin/sh
+# Make a snapshot of the CVS head revision
+# Fixme: we should either run autoconf here or make a real distribution
+
+set -e
+
+cd $HOME/pub
+
+
+fix_version () {
+ version=$(cat $1/VERSION)
+ echo "$version-snap$(date +%Y-%m-%d)" >$1/VERSION
+ cat <<EOF >$1/SNAPSHOT
+ WARNING!
+
+This is a snapshot of the current CVS head branch!
+
+It may not compile or not work. Please don't report
+bugs about this snapshot release it is just for your
+convenience and to reduce the load of out CVS server.
+
+Thanks,
+
+ Werner
+EOF
+}
+
+
+do_export () {
+ pgm=$1
+ mod=$2
+
+ rm -rf $pgm.new || true
+ rm -rf $pgm.old || true
+ cvs -Q export -r HEAD -d $pgm.new $mod
+ fix_version $pgm.new
+ [ -d $pgm ] && mv $pgm $pgm.old
+ if ! mv $pgm.new $pgm ; then
+ echo "rename failed - restoring" >&2
+ mv $pgm.old $pgm
+ exit 1
+ fi
+ rm -rf $pgm.old || true
+}
+
+
+do_export gnupg-snapshot gnupg
+
+
+exit 0
+
diff --git a/scripts/mkwebpage b/scripts/mkwebpage
new file mode 100755
index 000000000..8b6782477
--- /dev/null
+++ b/scripts/mkwebpage
@@ -0,0 +1,47 @@
+#!/bin/sh
+# Make a snapshot of the CVS head revision for the gnupg webpages
+
+set -e
+
+cd $HOME/pub
+
+
+fix_it () {
+ dir=$1
+
+ cat <<EOF >$dir/NEWS
+[ This is a snapshot of the NEWS file from the CVS head revision.
+ You will find the NEWS for the latest revision below the line
+ "Noteworthy changes in version 0.x.y".
+ (wk $(date +%Y-%m-%d)) ]
+
+
+EOF
+ cvs -Q checkout -p gnupg/NEWS >>$dir/NEWS
+}
+
+
+
+do_export () {
+ pgm=$1
+ mod=$2
+
+ rm -rf $pgm.new || true
+ rm -rf $pgm.old || true
+ cvs -Q export -r HEAD -d $pgm.new $mod
+ fix_it $pgm.new
+ [ -d $pgm ] && mv $pgm $pgm.old
+ if ! mv $pgm.new $pgm ; then
+ echo "rename failed - restoring" >&2
+ mv $pgm.old $pgm
+ exit 1
+ fi
+ rm -rf $pgm.old || true
+}
+
+
+do_export gnupg-www gnupg-www
+
+
+exit 0
+