ENH: add auto-detect 0/ to foamCleanTutorials

- in the 'auto' mode (now the default), it will use cleanCase and also
  remove the 0/ directory if a 0.orig/ directory also exists.

  This corresponds to a frequent idiom and can be used quite safely
  for most cases.

ENH: add -serial / -parallel preference for foamRunTutorials
This commit is contained in:
Mark Olesen
2021-06-17 10:09:39 +02:00
parent 096b9dc52e
commit 7d2a9fad1a
3 changed files with 152 additions and 78 deletions

View File

@ -76,7 +76,14 @@ optRunLimit=1
while [ "$#" -gt 0 ]
do
case "$1" in
-h* | -help*) printHelp ;;
(- | --)
shift
break # Stop option parsing
;;
(-h* | -help* | --help*)
printHelp
;;
-force)
optForce=true
@ -102,10 +109,6 @@ do
outputDir="${1#*=}"
;;
--)
break
;;
-*)
die "unknown option $1"
;;