STYLE: string quoting when echoing paths in wmake have_* scripts STYLE: more consistency in foamRunTutorials, foamCleanTutorials options
23 lines
655 B
Bash
Executable File
23 lines
655 B
Bash
Executable File
#!/bin/sh
|
|
cd "${0%/*}" || exit # Run from this directory
|
|
targetType=libso
|
|
. "${WM_PROJECT_DIR:?}"/wmake/scripts/AllwmakeParseArguments
|
|
|
|
#------------------------------------------------------------------------------
|
|
# Default build into OpenFOAM project locations unless specified with
|
|
# -prefix or FOAM_MODULE_PREFIX env varable
|
|
|
|
: "${FOAM_MODULE_PREFIX:=${FOAM_LIBBIN%/*}}"
|
|
export FOAM_MODULE_PREFIX
|
|
|
|
for moduleName in $(./list-modules)
|
|
do
|
|
if [ -d "$moduleName" ]
|
|
then
|
|
( cd "$moduleName" && wmake -all $targetType )
|
|
fi
|
|
done
|
|
|
|
|
|
#------------------------------------------------------------------------------
|