Skip to content

Commit

Permalink
Rework the Windows weekly 2.4 build to avoid parallel builds (which w…
Browse files Browse the repository at this point in the history
…ould fail

BP (note that r20452 should be backported first, though I forgot to add the BP marker)


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20454 57a11ea4-9604-0410-9ed3-97b8803252fd
  • Loading branch information
gjanssens committed Mar 22, 2011
1 parent ec6b423 commit 117a73e
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 6 deletions.
5 changes: 5 additions & 0 deletions packaging/win32/daily_build.bat
Expand Up @@ -3,5 +3,10 @@ rem It simply calls the actual MSYS Shell script to perform
rem the daily build and then the tag builds.

cd c:\soft\packaging

rem Development build (daily)
c:\msys\1.0\bin\sh.exe --login c:\soft\packaging\daily_build.sh
rem Tags build (daily -- only tags that weren't built yet)
c:\msys\1.0\bin\sh.exe --login c:\soft\packaging\build_tags.sh
rem 2.4 branch build (weekly)
c:\msys\1.0\bin\sh.exe --login c:\soft\packaging\daily_build.sh c:\soft-2.4\packaging
6 changes: 0 additions & 6 deletions packaging/win32/weekly_build.bat

This file was deleted.

23 changes: 23 additions & 0 deletions packaging/win32/weekly_build.sh
@@ -0,0 +1,23 @@
#!/bin/sh
#
# Note: for this script to work, you need to make sure bash can
# find svn on your system. If it's not in the default
# Windows path, you will have to add it yourself, for
# example like this:
# - create a file /etc/profile.d/svn.sh
# - add this line: export PATH=/c/soft/svn/bin:$PATH
# (Use the real path to your svn installation, obviously)

set -e

# Only run this script on Monday night (first day of the week)
if [ `date +%u` != 2 ] ; then exit ; fi

function qpushd() { pushd "$@" >/dev/null; }
function qpopd() { popd >/dev/null; }
function unix_path() { echo "$*" | sed 's,^\([A-Za-z]\):,/\1,;s,\\,/,g'; }

qpushd "$(dirname $(unix_path "$0"))"
svn update
./build_package.sh
qpopd

0 comments on commit 117a73e

Please sign in to comment.