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.
13 # NOTE!!! There is a different remote set on rescue below
17 # Note, you will probably want to set updatepo=no if you
18 # run this script multiple times for a given release.
24 echo "Need $0 <Branch-to-release>"
25 echo "e.g. $0 Branch-5.0"
33 # We pull the version $ver from the main bacula source directory
35 check_return_code "makeall: Directory $bacula/bacula does not exist"
37 current=`git branch | awk '/*/ { print $2 }'`
38 git checkout ${branch}
39 check_return_code "makeall: Checkout of branch ${branch} failed."
41 git pull ${remote} ${branch}
42 ver=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' src/version.h`
43 git checkout ${current}
47 ./makebacularel $bacula $remote $branch $ver
48 check_return_code "$0: makebacularel bad return code"
50 ./makedocsrel $bacula $docs $remote $branch $ver
51 check_return_code "$0: makedocsrel bad return code"
54 ./makewinrel $bacula $remote $branch $ver | tee win$$.log
55 check_return_code "$0: makewinrel bad return code"
57 # strip ./configure strerror from Win log file
58 sed -i -e 's%strerror%%' win$$.log
59 # check for warning and error messages
60 grep -i warning win$$.log >/dev/null
61 check_return_code "makeall: Warnings in win$$.log"
62 grep -i error win$$.log >/dev/null
63 check_return_code "makeall: Errors in win$$.log"
67 ./makerescuerel $rescue $remote $branch $ver
68 check_return_code "$0: makerescuerel bad return code"