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.
23 echo "Need $0 <bacula-source-directory> <remote-name> <branch> <version>"
24 echo "e.g. $0 rescue-source bee Branch-4.0 4.0.3"
29 echo "Directory: $1 does not exist"
34 echo "Directory: $1 does not exist"
37 current=`git branch | awk '/*/ { print $2 }'`
39 git checkout ${branch}
41 echo "Checkout of branch ${branch} in ${src} failed."
44 git pull ${remote} ${branch}
46 echo "Making $reltype for Windows $base_pkg-$ver ..."
48 #echo "OK? ctl-c to stop"
52 rm -f release32/${base_pkg}-win32-$ver.exe
53 rm -f release64/${base_pkg}-win64-$ver.exe
56 ./configure --with-sqlite3
59 cp release32/${base_pkg}-win32-$ver.exe ${cwd}
60 cp release64/${base_pkg}-win64-$ver.exe ${cwd}
63 ./sign ${base_pkg}-win32-$ver.exe
64 ./sign ${base_pkg}-win64-$ver.exe
65 ls -l ${base_pkg}-win*.exe*
68 # get back to original branch
69 git checkout ${current}