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 <rescue-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}
42 echo "Making $reltype for $base_pkg-$ver ..."
44 echo "OK? ctl-c to stop"
48 rm -f release32/winbacula-$ver.exe
49 rm -f release64/win64bacula-$ver.exe
52 cp release32/winbacula-$ver.exe ${cwd}
53 cp release64/win64bacula-$ver.exe ${cwd}
57 ./sign winbacula-$ver.exe
58 ./sign win64bacula-$ver.exe