]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/release/makewinrel
Fix ActionOnPurge with a relabel command
[bacula/bacula] / bacula / release / makewinrel
index 4d60d3b55770b16cbb3c5c66c2221d45d13dc0a6..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
@@ -58,6 +59,3 @@ rm -f *.exe.sig
 ./sign win64bacula-$ver.exe
 ls -l win*.exe*
 
-echo " "
-echo "If everything is OK, don't forget to push $src tags to the repo"
-echo " "