Windows build: be sure to restore msys environment even when the build

fails
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20711 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Geert Janssens 2011-05-28 09:27:57 +00:00
parent 534acbdaa0
commit 63fa79a493
4 changed files with 15 additions and 3 deletions

View File

@ -56,8 +56,8 @@ Please set AQBANKING_WITH_QT to yes and rerun install.sh first."
add_to_env $_GNOME_UDIR/bin PATH # gconftool-2
add_to_env $_EXETYPE_UDIR/bin PATH # exetype
PID=$$
configure_msys "$PID" "$_MINGW_WFSDIR"
_PID=$$
configure_msys "$_PID" "$_MINGW_WFSDIR"
}
function dist_aqbanking() {

View File

@ -2,6 +2,12 @@
set -e
function on_error() {
setup "An error occurred, exiting."
restore_msys "$_PID"
}
trap on_error ERR
function qpushd() { pushd "$@" >/dev/null; }
function qpopd() { popd >/dev/null; }
function unix_path() { echo "$*" | sed 's,^\([A-Za-z]\):,/\1,;s,\\,/,g'; }
@ -44,7 +50,7 @@ for step in "${steps[@]}" ; do
done
setup Restore MSYS
restore_msys "$PID"
restore_msys "$_PID"
qpopd

0
packaging/win32/install-impl.sh Normal file → Executable file
View File

View File

@ -10,6 +10,12 @@
set -e
function on_error() {
setup "An error occurred, exiting."
restore_msys "$_PID"
}
trap on_error ERR
echo -n "Build Starting at "
date