From c0228988514e743f8d942f7fcefb91b82cc70dc6 Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Sat, 9 Jul 2016 14:22:14 +0100 Subject: [PATCH] wmakeLnIncludeAll: Add '-update' option --- wmake/wmakeLnIncludeAll | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/wmake/wmakeLnIncludeAll b/wmake/wmakeLnIncludeAll index 1513ac079a..73cd5798cf 100755 --- a/wmake/wmakeLnIncludeAll +++ b/wmake/wmakeLnIncludeAll @@ -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