]> git.sur5r.net Git - bacula/bacula/commitdiff
Tweak makewinrel to detect version instead of using branch
authorEric Bollengier <eric@eb.homelinux.org>
Thu, 21 Jan 2010 17:57:15 +0000 (18:57 +0100)
committerEric Bollengier <eric@eb.homelinux.org>
Thu, 21 Jan 2010 18:00:38 +0000 (19:00 +0100)
bacula/release/makewinrel

index f7db76d3f59c1d64fab724ffc9551dcb0afb0bdb..b119efc10bafdfb7ea97aca3a904fb85ab2d44f3 100755 (executable)
@@ -14,9 +14,9 @@ reltype=release
 tagbase=Release-
 base_pkg=windows
 branch=$2
-ver=$2
+
 if [ $# != 2 ] ; then
-  echo "Need $0 <rescue-source-directory> <branch>"
+  echo "Need $0 <bacula-source-directory> <branch>"
   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