From a2d491cd389c7648023c68d1f1f2beadb83fbeb1 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Thu, 21 Jan 2010 18:57:15 +0100 Subject: [PATCH] Tweak makewinrel to detect version instead of using branch --- bacula/release/makewinrel | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -- 2.39.5