From: Eric Bollengier Date: Thu, 21 Jan 2010 17:57:15 +0000 (+0100) Subject: Tweak makewinrel to detect version instead of using branch X-Git-Tag: Release-7.0.0~2342 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a2d491cd389c7648023c68d1f1f2beadb83fbeb1;p=bacula%2Fbacula Tweak makewinrel to detect version instead of using branch --- diff --git a/bacula/release/makewinrel b/bacula/release/makewinrel index f7db76d3f5..b119efc10b 100755 --- a/bacula/release/makewinrel +++ b/bacula/release/makewinrel @@ -14,9 +14,9 @@ reltype=release tagbase=Release- base_pkg=windows branch=$2 -ver=$2 + if [ $# != 2 ] ; then - echo "Need $0 " + echo "Need $0 " echo "e.g. $0 rescue-source master" exit 1 fi @@ -30,6 +30,7 @@ if [ $? -ne 0 ]; then echo "Directory: $1 does not exist" exit 1 fi +ver=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' src/version.h` src=`pwd` git checkout ${branch} if [ $? -ne 0 ]; then