]> git.sur5r.net Git - bacula/bacula/blob - bacula/release/makeall
f4126ca997f86ca400c7753e4fdd290a01f3210f
[bacula/bacula] / bacula / release / makeall
1 #!/bin/sh
2 #
3 # Make full release
4 #
5 # Bacula git repos
6 bacula=${bacula:-${HOME}/bacula/k/bacula}
7 docs=${docs:-${HOME}/bacula/k/docs}
8 rescue=${rescue:-${HOME}/bacula/k/rescue}
9 #
10 # Set the following to your remote name.  By default it is origin.
11 remote=bs
12
13 export push=yes
14 #
15 # Note, you will probably want to set updatepo=no if you
16 #   run this script multiple times for a given release.
17 export updatepo=no
18
19 if [ $# != 1 ] ; then
20   echo "Need $0 <Branch-to-release>"
21   echo "e.g. $0 Branch-5.0"
22   exit 1
23 fi
24
25 branch=$1
26
27 # ./makeclean
28 ./makebacularel $bacula $remote $branch
29 ./makedocsrel $bacula $docs $remote $branch
30 ./makerescuerel $rescue $remote $branch
31 ./makewinrel $bacula $remote $branch | tee win$$.log
32
33 # strip ./configure strerror from Win log file
34 sed -i -e 's%strerror%%' win$$.log
35 # check for warning and error messages
36 grep -i warning win$$.log >/dev/null
37 if [ $? -eq 0 ] ; then
38   echo " "
39   echo "Warnings in win$$.log"
40   exit 1
41 fi
42 grep -i error win$$.log >/dev/null
43 if [ $? -eq 0 ] ; then
44   echo " "
45   echo "Errors in win$$.log"
46   exit 1
47 fi
48 rm -f win$$.log