wmake/scripts/AllwmakeParseArguments: Handle stop-on-error
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1485
This commit is contained in:
parent
fd6459c556
commit
b0c120b7b5
2 changed files with 11 additions and 6 deletions
|
|
@ -27,10 +27,5 @@ else
|
|||
echo
|
||||
fi
|
||||
|
||||
if [ -n "$SCOTCH_ARCH_PATH" ]
|
||||
then
|
||||
wmake $targetType scotchGamgAgglomeration
|
||||
fi
|
||||
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
# ========= |
|
||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
# \\ / O peration |
|
||||
# \\ / A nd | Copyright (C) 2014 OpenFOAM Foundation
|
||||
# \\ / A nd | Copyright (C) 2014-2015 OpenFOAM Foundation
|
||||
# \\/ M anipulation |
|
||||
#------------------------------------------------------------------------------
|
||||
# License
|
||||
|
|
@ -144,6 +144,16 @@ do
|
|||
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
|
||||
#------------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue