From c157ebde527926e91496c24eaf1b2e5e10b924c7 Mon Sep 17 00:00:00 2001 From: Ari Johnson Date: Fri, 2 Mar 2007 16:36:17 +0000 Subject: [PATCH] Added branch name to non-release dist tarballs --- scripts/makedist.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/scripts/makedist.sh b/scripts/makedist.sh index 97957cf..e0a7553 100644 --- a/scripts/makedist.sh +++ b/scripts/makedist.sh @@ -12,7 +12,8 @@ echo "that all files are up-to-date" # Step 2: determine version echo "Determining version..." VERSION=`grep VERSION hdrs/version.h | sed 's/^.*"\(.*\)".*$/\1/'` -echo "Version is $VERSION" +BRANCH=`grep VBRANCH hdrs/version.h | sed 's/^.*"\(.*\)".*$/\1/'` +echo "Version is $VERSION, branch is $BRANCH" # Step 3: copy everything into a temporary directory WD=`pwd` @@ -30,7 +31,12 @@ rm x?? # Step 4: make tarball echo "Making tarball..." -TARBALL="cobramush-$VERSION.tar.gz" +if [ "$BRANCH" = "release" ]; then + BRANCHNAME="" +else + BRANCHNAME="-$BRANCH" +fi +TARBALL="cobramush-$VERSION$BRANCHNAME.tar.gz" tar -czf "$WD/$TARBALL" cobramush # Step 5: clean up -- 2.30.2