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'

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20456 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Geert Janssens
2011-03-22 21:46:13 +00:00
parent 14458f4a3a
commit 712a3ecba3
3 changed files with 8 additions and 5 deletions

View File

@@ -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

View File

@@ -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: ***

View File

@@ -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; }