diff options
author | hpa <hpa> | 2001-11-17 00:16:10 +0000 |
---|---|---|
committer | hpa <hpa> | 2001-11-17 00:16:10 +0000 |
commit | 779db73551f69a36c0ff782e57225ede5f786b2d (patch) | |
tree | fd2878acf6946ba55a3d4caea315cb844f5c4a27 /release.sh | |
parent | cc2a43bf013dbbbc80ba9c2627b9876652325203 (diff) | |
download | tftp-hpa-779db73551f69a36c0ff782e57225ede5f786b2d.tar.gz |
Script to tag the tree and generate a release tarball
Diffstat (limited to 'release.sh')
-rwxr-xr-x | release.sh | 37 |
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 |