]> git.sur5r.net Git - bacula/bacula/commitdiff
tweak release script
authorEric Bollengier <eric@eb.homelinux.org>
Thu, 6 May 2010 19:18:04 +0000 (21:18 +0200)
committerEric Bollengier <eric@eb.homelinux.org>
Mon, 2 Aug 2010 14:53:48 +0000 (16:53 +0200)
bacula/release/makeall

index 37ef4b543859c544bd25040e7f8a3fc810014a3f..69ef215e2726d548024c1a637c1854aea71aa7b5 100755 (executable)
@@ -2,15 +2,16 @@
 #
 # Make full release
 #
-branch=5.0.0
-#
 # Bacula git repos
-bacula=/home/kern/bacula/k
-docs=/home/kern/bacula/docs
-rescue=/home/kern/bacula/rescue
+bacula=${bacula:-/home/kern/bacula/k}
+docs=${docs:-/home/kern/bacula/docs}
+rescue=${rescue:-/home/kern/bacula/rescue}
 export push=yes
 export updatepo=yes
 
+current=$(cd $bacula ; git branch | awk '/*/ { print $2 }')
+branch=${1:-$current}
+
 ./makeclean
 ./makebacularel $bacula $branch
 ./makedocsrel $bacula $docs $branch