From e997ddbc1566b36eb81197ebee7ec524b77d76ac Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Thu, 7 Aug 2014 19:25:42 +0000 Subject: [PATCH] improve the repack script --- debian/orig-tar.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/debian/orig-tar.sh b/debian/orig-tar.sh index ddccfb95..aa511b82 100755 --- a/debian/orig-tar.sh +++ b/debian/orig-tar.sh @@ -77,7 +77,11 @@ if test -n "$RCRELEASE"; then FULL_VERSION="llvm-toolchain-"$MAJOR_VERSION"_"$VERSION else VERSION=$CURRENT_VERSION"~svn"$REVISION - FULL_VERSION="llvm-toolchain-snapshot_"$VERSION + if grep -q release_ $BRANCH; then + FULL_VERSION="llvm-toolchain-"$MAJOR_VERSION"_"$VERSION + else + FULL_VERSION="llvm-toolchain-snapshot_"$VERSION + fi fi # LLVM @@ -130,7 +134,7 @@ if test -z "$DISTRIBUTION"; then DISTRIBUTION="experimental" fi -if test -n "$RCRELEASE"; then +if test -n "$RCRELEASE" -o -n "$BRANCH"; then EXTRA_DCH_FLAGS="--force-bad-version --allow-lower-version" fi