X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Frelease%2Fmakerescuerel;h=2f8add903b4e3378eb1535c55512b7eddd76e5a0;hb=a4d01a184903e4a1894950ec39a0227caa9ac335;hp=789b36c33340d273c312097c6e7b121a6e81f76d;hpb=f6aae889e06fed8a081078d7686af49de9fb225d;p=bacula%2Fbacula diff --git a/bacula/release/makerescuerel b/bacula/release/makerescuerel index 789b36c333..2f8add903b 100755 --- a/bacula/release/makerescuerel +++ b/bacula/release/makerescuerel @@ -15,7 +15,7 @@ tagbase=Release- base_pkg=bacula-rescue base_dir=rescue branch=$2 -ver=$2 + if [ $# != 2 ] ; then echo "Need $0 " echo "e.g. $0 rescue-source master" @@ -31,6 +31,7 @@ if [ $? -ne 0 ]; then echo "Directory: $1 does not exist" exit 1 fi + src=`pwd` git checkout ${branch} if [ $? -ne 0 ]; then @@ -38,6 +39,7 @@ if [ $? -ne 0 ]; then exit 1 fi git pull origin ${branch} +ver=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' version.h` fulltag=$tagbase$ver echo " " echo "Making $reltype for $base_pkg-$ver ..." @@ -74,6 +76,6 @@ ls -l $base_pkg-$ver.tar.* if [ a$push != ano ]; then cd ${src} - git push - git push --tags + git push origin $branch + git push origin tag $fulltag fi