mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Allwmake -log=name option to specify log name (issue #333)
- helpful when testing various builds
This commit is contained in:
@ -48,7 +48,7 @@ Executing $Script is equivalent to
|
|||||||
wmake -all [OPTIONS]
|
wmake -all [OPTIONS]
|
||||||
|
|
||||||
With these additional options:
|
With these additional options:
|
||||||
-l | -log
|
-l | -log | -log=name
|
||||||
|
|
||||||
USAGE
|
USAGE
|
||||||
|
|
||||||
@ -78,7 +78,12 @@ do
|
|||||||
fromWmake=true
|
fromWmake=true
|
||||||
;;
|
;;
|
||||||
-l | -log)
|
-l | -log)
|
||||||
optLog=true
|
optLog="log.Allwmake"
|
||||||
|
continue # Permanently remove arg
|
||||||
|
;;
|
||||||
|
-log=*)
|
||||||
|
optLog="${arg##*=}"
|
||||||
|
[ -n "$optLog" ] || optLog="log.Allwmake"
|
||||||
continue # Permanently remove arg
|
continue # Permanently remove arg
|
||||||
;;
|
;;
|
||||||
-q | -queue)
|
-q | -queue)
|
||||||
@ -106,8 +111,8 @@ then
|
|||||||
then
|
then
|
||||||
exec wmake -all $optQueue $*
|
exec wmake -all $optQueue $*
|
||||||
else
|
else
|
||||||
echo "logging wmake -all output to 'log.Allwmake'" 1>&2
|
echo "logging wmake -all output to '$optLog'" 1>&2
|
||||||
exec wmake -all $optQueue $* 2>&1 | tee log.Allwmake
|
exec wmake -all $optQueue $* 2>&1 | tee $optLog
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user