6 bacula=${bacula:-${HOME}/bacula/k/bacula}
7 docs=${docs:-${HOME}/bacula/k/docs}
8 rescue=${rescue:-${HOME}/bacula/k/rescue}
10 # Set the following to your remote name. By default it is origin.
14 # Note, you will probably want to set updatepo=no if you
15 # run this script multiple times for a given release.
21 echo "Need $0 <Branch-to-release>"
22 echo "e.g. $0 Branch-5.0"
30 # We pull the version $ver from the main bacula source directory
32 current=`git branch | awk '/*/ { print $2 }'`
35 echo "Directory: $1 does not exist"
38 git checkout ${branch}
39 git pull ${remote} ${branch}
41 echo "Checkout of branch ${branch} failed."
44 ver=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' src/version.h`
45 git checkout ${current}
50 ./makebacularel $bacula $remote $branch $ver
51 ./makedocsrel $bacula $docs $remote $branch $ver
52 ./makerescuerel $rescue $remote $branch $ver
53 ./makewinrel $bacula $remote $branch $ver | tee win$$.log
55 # strip ./configure strerror from Win log file
56 sed -i -e 's%strerror%%' win$$.log
57 # check for warning and error messages
58 grep -i warning win$$.log >/dev/null
59 if [ $? -eq 0 ] ; then
61 echo "Warnings in win$$.log"
64 grep -i error win$$.log >/dev/null
65 if [ $? -eq 0 ] ; then
67 echo "Errors in win$$.log"