mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
wmakeLnIncludeAll: Add '-update' option
This commit is contained in:
@ -30,7 +30,7 @@
|
|||||||
#
|
#
|
||||||
# Description
|
# Description
|
||||||
# Find directories with a 'Make/files' that contains a 'LIB =' directive
|
# Find directories with a 'Make/files' that contains a 'LIB =' directive
|
||||||
# and execute 'wmakeLnInclude -update' for each one
|
# and execute 'wmakeLnInclude' for each one
|
||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
Script=${0##*/}
|
Script=${0##*/}
|
||||||
@ -61,12 +61,18 @@ USAGE
|
|||||||
findName=lnInclude
|
findName=lnInclude
|
||||||
nCores=0
|
nCores=0
|
||||||
|
|
||||||
|
# Default 'wmakeLnInclude' option
|
||||||
|
wmLnOpt=
|
||||||
|
|
||||||
while [ "$#" -gt 0 ]
|
while [ "$#" -gt 0 ]
|
||||||
do
|
do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
-h | -help) # Provide immediate help
|
-h | -help) # Provide immediate help
|
||||||
usage
|
usage
|
||||||
;;
|
;;
|
||||||
|
-u | -update)
|
||||||
|
wmLnOpt="-update"
|
||||||
|
;;
|
||||||
# Parallel execution on WM_NCOMPPROCS cores
|
# Parallel execution on WM_NCOMPPROCS cores
|
||||||
-j)
|
-j)
|
||||||
nCores=$WM_NCOMPPROCS
|
nCores=$WM_NCOMPPROCS
|
||||||
@ -129,9 +135,9 @@ do
|
|||||||
wait -n
|
wait -n
|
||||||
joblist=($(jobs -p))
|
joblist=($(jobs -p))
|
||||||
done
|
done
|
||||||
wmakeLnInclude -update $topDir &
|
wmakeLnInclude $wmLnOpt $topDir &
|
||||||
else
|
else
|
||||||
wmakeLnInclude -update $topDir
|
wmakeLnInclude $wmLnOpt $topDir
|
||||||
fi
|
fi
|
||||||
elif [ -d "$topDir/lnInclude" ]
|
elif [ -d "$topDir/lnInclude" ]
|
||||||
then
|
then
|
||||||
|
|||||||
Reference in New Issue
Block a user