From 22e2fe6dc65b5241db389e0b08b90c135e5b7494 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Thu, 16 Feb 2006 09:42:30 -0800 Subject: Allow testing of the release mechanism --- release.sh | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'release.sh') diff --git a/release.sh b/release.sh index 27d617b..d2e9e23 100755 --- a/release.sh +++ b/release.sh @@ -17,15 +17,19 @@ releasedir=$PACKAGE-$release GIT_DIR=`cd "${GIT_DIR-.git}" && pwd` export GIT_DIR -echo $release > version.new -if ! cmp -s version version.new ; then - mv -f version.new version - cg-commit -m 'Update version for release' version +if [ x"$release" = x'test' ]; then + releasetag=HEAD else - rm -f version.new + echo $release > version.new + if ! cmp -s version version.new ; then + mv -f version.new version + cg-commit -m 'Update version for release' version + else + rm -f version.new + fi + rm -f "$GIT_DIR"/refs/tags/$releasetag + cg-tag $releasetag fi -rm -f "$GIT_DIR"/refs/tags/$releasetag -cg-tag $releasetag here=`pwd` -- cgit v1.2.1