wmakeLnIncludeAll: Add '-update' option
This commit is contained in:
parent
83c7d16a0d
commit
8b4163d797
1 changed files with 9 additions and 3 deletions
|
|
@ -30,7 +30,7 @@
|
|||
#
|
||||
# Description
|
||||
# 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##*/}
|
||||
|
|
@ -61,12 +61,18 @@ USAGE
|
|||
findName=lnInclude
|
||||
nCores=0
|
||||
|
||||
# Default 'wmakeLnInclude' option
|
||||
wmLnOpt=
|
||||
|
||||
while [ "$#" -gt 0 ]
|
||||
do
|
||||
case "$1" in
|
||||
-h | -help) # Provide immediate help
|
||||
usage
|
||||
;;
|
||||
-u | -update)
|
||||
wmLnOpt="-update"
|
||||
;;
|
||||
# Parallel execution on WM_NCOMPPROCS cores
|
||||
-j)
|
||||
nCores=$WM_NCOMPPROCS
|
||||
|
|
@ -129,9 +135,9 @@ do
|
|||
wait -n
|
||||
joblist=($(jobs -p))
|
||||
done
|
||||
wmakeLnInclude -update $topDir &
|
||||
wmakeLnInclude $wmLnOpt $topDir &
|
||||
else
|
||||
wmakeLnInclude -update $topDir
|
||||
wmakeLnInclude $wmLnOpt $topDir
|
||||
fi
|
||||
elif [ -d "$topDir/lnInclude" ]
|
||||
then
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue