8 bacula=${bacula:-${HOME}/bacula/k}
9 docs=${docs:-${HOME}/bacula/docs}
10 rescue=${rescue:-${HOME}/bacula/rescue}
12 # Set the following to your remote name. By default it is origin.
16 # Note, you will probably want to set updatepo=no if you
17 # run this script multiple times for a given release.
23 echo "Need $0 <Branch-to-release>"
24 echo "e.g. $0 Branch-5.0"
32 # We pull the version $ver from the main bacula source directory
34 check_return_code "makeall: Directory $bacula/bacula does not exist"
36 current=`git branch | awk '/*/ { print $2 }'`
37 git checkout ${branch}
38 check_return_code "makeall: Checkout of branch ${branch} failed."
40 git pull ${remote} ${branch}
41 ver=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' src/version.h`
42 git checkout ${current}
46 ./makebacularel $bacula $remote $branch $ver
47 check_return_code "$0: makebacularel bad return code"
49 ./makedocsrel $bacula $docs $remote $branch $ver
50 check_return_code "$0: makedocsrel bad return code"
53 ./makewinrel $bacula $remote $branch $ver | tee win$$.log
54 check_return_code "$0: makewinrel bad return code"
56 # strip ./configure strerror from Win log file
57 sed -i -e 's%strerror%%' win$$.log
58 # check for warning and error messages
59 grep -i warning win$$.log >/dev/null
60 check_return_code "makeall: Warnings in win$$.log"
61 grep -i error win$$.log >/dev/null
62 check_return_code "makeall: Errors in win$$.log"
65 ./makerescuerel $rescue $remote $branch $ver
66 check_return_code "$0: makerescuerel bad return code"