[20456] Some additional Windows nightly build fixes:

- restore the original mingw/msys link, even when the build script abort (due to a die command)
- only restore the mingw/msys link if it was saved before
- weekly builds should be on Monday, not Tuesday
- upload tag rebuilds to a directory named 'releases' instead of 'tags'

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/2.4@20465 57a11ea4-9604-0410-9ed3-97b8803252fd
2.4
Geert Janssens 15 years ago
parent 1e5bc6f110
commit 6ffc947376

@ -79,7 +79,7 @@ fi
if [ `hostname` = "gnucash-win32" ]; then
# Determine where to upload to
if $(echo $REPOS_URL | grep -q tags); then
TARGET_DIR=tags
TARGET_DIR=releases
else
TARGET_DIR=${REPOS_URL##*/}
fi

@ -121,6 +121,7 @@ function die() {
echo
[ "$*" ] && echo "!!! $* !!!"
echo "!!! ABORTING !!!"
restore_msys
exit -1
}
@ -214,9 +215,11 @@ function configure_msys() {
function restore_msys() {
SUFFIX=$1
echo "resetting msys to use original mingw."
rm /etc/fstab
mv /etc/fstab.$SUFFIX /etc/fstab
if [ -f /ect/fstab.$SUFFIX ]; then
echo "resetting msys to use original mingw."
rm /etc/fstab
mv /etc/fstab.$SUFFIX /etc/fstab
fi
}
### Local Variables: ***

@ -11,7 +11,7 @@
set -e
# Only run this script on Monday night (first day of the week)
if [ `date +%u` != 2 ] ; then exit ; fi
if [ `date +%u` != 1 ] ; then exit ; fi
function qpushd() { pushd "$@" >/dev/null; }
function qpopd() { popd >/dev/null; }

Loading…
Cancel
Save