From ccd90dccdbb5a94d3f68f9f3ce2deec3933b400e Mon Sep 17 00:00:00 2001 From: Cas Cremers Date: Mon, 8 Oct 2007 14:27:53 +0200 Subject: [PATCH] Releasescripts now also allow for building arbitrary description tags. In a next pass, maybe we will allow for releasing *any* valid git revision. --- dist/build-arch-tag | 6 +++++- dist/releasescript | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/dist/build-arch-tag b/dist/build-arch-tag index fa846ce..919c323 100755 --- a/dist/build-arch-tag +++ b/dist/build-arch-tag @@ -18,6 +18,9 @@ # and this is used to construct a archive with the binary of the # selected architecture. +# Current +DESCR=`git describe --tags` + if [ "x$1" = "x" -o "x$2" = "x" ] then echo @@ -43,12 +46,13 @@ fi TAG=$2 FOUND=`git-tag -l $TAG` -if [ "x$TAG" = "x$FOUND" ] +if [ "x$TAG" = "x$FOUND" -o "x$TAG" = "x$DESCR" ] then echo "Tag $TAG found." else echo "Don't know tag $TAG, please select one from below:" git-tag -l + echo $DESCR exit fi diff --git a/dist/releasescript b/dist/releasescript index 3aff5ef..2dfa759 100755 --- a/dist/releasescript +++ b/dist/releasescript @@ -2,12 +2,15 @@ BUILDER=./build-arch-tag +# Current +DESCR=`git describe --tags` + # Check whether the tag exists TAG=$1 if [ "x$TAG" != "x" ] then FOUND=`git-tag -l $TAG` - if [ "x$TAG" = "x$FOUND" ] + if [ "x$TAG" = "x$FOUND" -o "x$TAG" = "x$DESCR" ] then echo "Tag $TAG found." else @@ -24,6 +27,7 @@ then echo echo "Don't know tag $TAG, please select one from below:" git-tag -l + echo $DESCR exit fi