AUDIT: r20456 - gnucash/trunk/packaging/win32 - Some additional Windows nightly build fixes:
Geert Janssens
gjanssens at code.gnucash.org
Tue Mar 22 17:46:13 EDT 2011
Author: gjanssens
Date: 2011-03-22 17:46:13 -0400 (Tue, 22 Mar 2011)
New Revision: 20456
Trac: http://svn.gnucash.org/trac/changeset/20456
Modified:
gnucash/trunk/packaging/win32/build_package.sh
gnucash/trunk/packaging/win32/functions.sh
gnucash/trunk/packaging/win32/weekly_build.sh
Log:
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
Modified: gnucash/trunk/packaging/win32/build_package.sh
===================================================================
--- gnucash/trunk/packaging/win32/build_package.sh 2011-03-22 21:03:22 UTC (rev 20455)
+++ gnucash/trunk/packaging/win32/build_package.sh 2011-03-22 21:46:13 UTC (rev 20456)
@@ -79,7 +79,7 @@
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
Modified: gnucash/trunk/packaging/win32/functions.sh
===================================================================
--- gnucash/trunk/packaging/win32/functions.sh 2011-03-22 21:03:22 UTC (rev 20455)
+++ gnucash/trunk/packaging/win32/functions.sh 2011-03-22 21:46:13 UTC (rev 20456)
@@ -121,6 +121,7 @@
echo
[ "$*" ] && echo "!!! $* !!!"
echo "!!! ABORTING !!!"
+ restore_msys
exit -1
}
@@ -214,9 +215,11 @@
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: ***
Modified: gnucash/trunk/packaging/win32/weekly_build.sh
===================================================================
--- gnucash/trunk/packaging/win32/weekly_build.sh 2011-03-22 21:03:22 UTC (rev 20455)
+++ gnucash/trunk/packaging/win32/weekly_build.sh 2011-03-22 21:46:13 UTC (rev 20456)
@@ -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; }
More information about the gnucash-changes
mailing list