aboutsummaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2015-05-28 13:33:43 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2015-09-28 07:53:07 +0200
commit2d50be9da273b4cd0f500b7b219c482651485e24 (patch)
tree391949122d8dcc0842edf9b9cdb43e685aa04dbe /debian
parent51a679ac23f51de1de06d7dbd668bf7f9026c04e (diff)
downloadnx-libs-2d50be9da273b4cd0f500b7b219c482651485e24.tar.gz
nx-libs-2d50be9da273b4cd0f500b7b219c482651485e24.tar.bz2
nx-libs-2d50be9da273b4cd0f500b7b219c482651485e24.zip
debian/roll-tarball.sh: Support tarring up the HEAD of the current branch.
Diffstat (limited to 'debian')
-rwxr-xr-xdebian/roll-tarballs.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/debian/roll-tarballs.sh b/debian/roll-tarballs.sh
index a060212f0..ff777bd37 100755
--- a/debian/roll-tarballs.sh
+++ b/debian/roll-tarballs.sh
@@ -52,13 +52,13 @@ else
fi
if [ x"$RELEASE" == "xHEAD" ]; then
- CHECKOUT="HEAD"
+ CHECKOUT=refs/heads/$(git rev-parse --abbrev-ref HEAD)
fi
if ! git rev-parse --verify -q "$CHECKOUT" >/dev/null; then
echo " '${RELEASE}' is not a valid release number because there is no git tag named ${CHECKOUT}."
echo " Please specify one of the following releases:"
- echo "HEAD"
+ echo "HEAD (on branch `git rev-parse --abbrev-ref HEAD`)"
git tag -l | grep "^redist" | cut -f2 -d"/" | sort -u
exit 1
fi