From 13c3b1d617a8a0ab8ac690b05803b80ac61ce2ea Mon Sep 17 00:00:00 2001 From: Mark Olesen Date: Tue, 13 Dec 2016 20:53:05 +0100 Subject: [PATCH] ENH: Allwmake -log=name option to specify log name (issue #333) - helpful when testing various builds --- wmake/scripts/AllwmakeParseArguments | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/wmake/scripts/AllwmakeParseArguments b/wmake/scripts/AllwmakeParseArguments index e4abb9aabc..79fa3f383e 100644 --- a/wmake/scripts/AllwmakeParseArguments +++ b/wmake/scripts/AllwmakeParseArguments @@ -48,7 +48,7 @@ Executing $Script is equivalent to wmake -all [OPTIONS] With these additional options: - -l | -log + -l | -log | -log=name USAGE @@ -78,7 +78,12 @@ do fromWmake=true ;; -l | -log) - optLog=true + optLog="log.Allwmake" + continue # Permanently remove arg + ;; + -log=*) + optLog="${arg##*=}" + [ -n "$optLog" ] || optLog="log.Allwmake" continue # Permanently remove arg ;; -q | -queue) @@ -106,8 +111,8 @@ then then exec wmake -all $optQueue $* else - echo "logging wmake -all output to 'log.Allwmake'" 1>&2 - exec wmake -all $optQueue $* 2>&1 | tee log.Allwmake + echo "logging wmake -all output to '$optLog'" 1>&2 + exec wmake -all $optQueue $* 2>&1 | tee $optLog fi fi