From f2d4b56c11c305abc2664621c7fd58ab302e7c40 Mon Sep 17 00:00:00 2001 From: Cas Cremers Date: Mon, 8 Oct 2007 14:37:50 +0200 Subject: [PATCH] Build and release any git revision. --- dist/build-arch-tag | 8 ++++---- dist/releasescript | 3 +-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/dist/build-arch-tag b/dist/build-arch-tag index 919c323..7585357 100755 --- a/dist/build-arch-tag +++ b/dist/build-arch-tag @@ -29,7 +29,7 @@ then echo " Usage: $0 " echo echo "where is one of linux,w32,mac" - echo "and is any tag in the current git repository." + echo "and is revision tag in the current git repository." echo exit fi @@ -45,12 +45,12 @@ else fi TAG=$2 -FOUND=`git-tag -l $TAG` -if [ "x$TAG" = "x$FOUND" -o "x$TAG" = "x$DESCR" ] +FOUND=`git rev-parse $TAG` +if [ "$?" -eq 0 ] then echo "Tag $TAG found." else - echo "Don't know tag $TAG, please select one from below:" + echo "Don't know tag $TAG, please select a revision, e.g. from below:" git-tag -l echo $DESCR exit diff --git a/dist/releasescript b/dist/releasescript index 2dfa759..21ed082 100755 --- a/dist/releasescript +++ b/dist/releasescript @@ -9,8 +9,7 @@ DESCR=`git describe --tags` TAG=$1 if [ "x$TAG" != "x" ] then - FOUND=`git-tag -l $TAG` - if [ "x$TAG" = "x$FOUND" -o "x$TAG" = "x$DESCR" ] + if [ "$?" -eq 0 ] then echo "Tag $TAG found." else