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-5.0.0~25 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1ed6390b6468f57bc575324fe451e4866d00687e;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