wmake/scripts/AllwmakeParseArguments: Handle stop-on-error

Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1485
This commit is contained in:
Henry
2015-01-10 21:58:19 +00:00
parent d11ce0b517
commit 1dd5b93897
2 changed files with 11 additions and 6 deletions

View File

@ -27,10 +27,5 @@ else
echo echo
fi fi
if [ -n "$SCOTCH_ARCH_PATH" ]
then
wmake $targetType scotchGamgAgglomeration
fi
# ----------------------------------------------------------------- end-of-file # ----------------------------------------------------------------- end-of-file

View File

@ -2,7 +2,7 @@
# ========= | # ========= |
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox # \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / O peration | # \\ / O peration |
# \\ / A nd | Copyright (C) 2014 OpenFOAM Foundation # \\ / A nd | Copyright (C) 2014-2015 OpenFOAM Foundation
# \\/ M anipulation | # \\/ M anipulation |
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# License # License
@ -144,6 +144,16 @@ do
done done
#------------------------------------------------------------------------------
# If WM_CONTINUE_ON_ERROR not set activate the shell option "stop on error"
#------------------------------------------------------------------------------
if [ -z "${WM_CONTINUE_ON_ERROR}" ]
then
set -e
fi
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# Cleanup local variables and functions # Cleanup local variables and functions
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------