mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
wmake/scripts/AllwmakeParseArguments: Handle stop-on-error
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1485
This commit is contained in:
@ -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
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user