ENH: Allwmake -log=name option to specify log name (issue #333)

- helpful when testing various builds
This commit is contained in:
Mark Olesen
2016-12-13 20:53:05 +01:00
parent b77dbc9c6c
commit 13c3b1d617

View File

@ -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