summaryrefslogtreecommitdiff
path: root/release.sh
diff options
context:
space:
mode:
Diffstat (limited to 'release.sh')
-rwxr-xr-xrelease.sh37
1 files changed, 37 insertions, 0 deletions
diff --git a/release.sh b/release.sh
new file mode 100755
index 0000000..cb850c8
--- /dev/null
+++ b/release.sh
@@ -0,0 +1,37 @@
+#!/bin/sh -x
+# $Id$
+#
+# Script for generating a release
+#
+
+CVS='cvs-real -d hpa@terminus.zytor.com:/home/hpa/cvsroot'
+MODULE=tftp-hpa
+
+if [ -z "$1" ]; then
+ echo "Usage: $0 release-id" 1>&2
+ exit 1
+fi
+
+release="$1"
+cvsrelease=$MODULE-`echo "$release" | tr '.' '_'`
+releasedir=$MODULE-$release
+
+echo $release > version
+$CVS commit -m 'Update version for release' version
+
+$CVS tag -F $cvsrelease
+
+here=`pwd`
+
+tmpdir=/var/tmp/release.$$
+rm -rf $tmpdir
+mkdir $tmpdir
+cd $tmpdir
+$CVS export -r $cvsrelease $MODULE
+mv $MODULE $releasedir
+cd $releasedir
+make release
+rm -f release.sh
+cd ..
+tar cvvf $here/../$releasedir.tar $releasedir
+gzip -9 $here/../$releasedir.tar