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.
21 echo "Need $0 <bacula-source-directory> <remote-name> <branch> <version>"
22 echo "e.g. $0 rescue-source bee Branch-4.0 4.0.1"
27 echo "Directory: $1 does not exist"
32 echo "Directory: $1 does not exist"
35 current=`git branch | awk '/*/ { print $2 }'`
37 git checkout ${branch}
39 echo "Checkout of branch ${branch} in ${src} failed."
42 git pull ${remote} ${branch}
45 echo "Making $reltype for Windows $base_pkg-$ver ..."
47 echo "OK? ctl-c to stop"
51 rm -f release32/${base_pkg}-win32-$ver.exe
52 rm -f release64/${base_pkg}-win64-$ver.exe
58 cp release32/${base_pkg}-win32-$ver.exe ${cwd}
59 cp release64/${base_pkg}-win64-$ver.exe ${cwd}
62 ./sign ${base_pkg}-win32-$ver.exe
63 ./sign ${base_pkg}-win64-$ver.exe
64 ls -l ${base_pkg}-win*.exe*
67 # get back to original branch
68 git checkout ${current}