4 # This script is used to make a Bacula win32 and win64 releases
6 # It writes in the current directory, so we recommend that you
7 # do not run it in the Bacula source or Git directory, but
8 # in a special release directory.
10 # Commit all changes, export the release, make a release tar.
19 echo "Need $0 <bacula-source-directory> <branch>"
20 echo "e.g. $0 rescue-source master"
25 echo "Directory: $1 does not exist"
30 echo "Directory: $1 does not exist"
34 git checkout ${branch}
36 echo "Checkout of branch ${branch} in ${src} failed."
39 git pull origin ${branch}
40 ver=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' src/version.h`
43 echo "Making $reltype for $base_pkg-$ver ..."
45 echo "OK? ctl-c to stop"
49 rm -f release32/win32bacula-$ver.exe
50 rm -f release64/win64bacula-$ver.exe
53 cp release32/win32bacula-$ver.exe ${cwd}
54 cp release64/win64bacula-$ver.exe ${cwd}
58 ./sign win32bacula-$ver.exe
59 ./sign win64bacula-$ver.exe