From 13c7a751343d4317090d403e2a2aeb3ea75e2473 Mon Sep 17 00:00:00 2001 From: Axel Beckert Date: Thu, 24 Sep 2009 01:13:37 +0200 Subject: [PATCH] debian/contrib/update.sh now accepts an upstream version as parameter Without parameter, the script works as before and generates a snapshot version number automatically. With parameter, no version number is generated but the given parameter is used instead as upstream version number, e.g. "0.9.1" instead of "0.9.1+git090924". --- contrib/debian/update.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/contrib/debian/update.sh b/contrib/debian/update.sh index daa3b2c..b0ddbaa 100755 --- a/contrib/debian/update.sh +++ b/contrib/debian/update.sh @@ -4,6 +4,10 @@ # of the so called source package. Do not move away from its current # location -- it depends on it. # +# It accepts one optional parameter: an upstream version number, +# e.g. "0.9.1". If a parameter is given, no date based snapshot +# version number is generated. +# # Copyright (C) 2008-2009 Axel Beckert # Find the full path of the current packaging directory and cd to it @@ -27,7 +31,12 @@ read line git rebase origin/master # Rename the packaging directory to reflect the new version number -version=0.9~git`date +%y%m%d` +if [ -n "$1" ]; then + version="$1" +else + version=`grep ^Version= application.ini | \ + sed -e 's/^Version=//'`+git`date +%y%m%d` +fi echo -n "Hit enter to rename directory from $olddir to conkeror-$version and generate source tar ball or hit Ctrl-C to abort." read line -- 2.11.4.GIT