mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
TUT: script cleanup, provide cleanCase0 for commonly used operation
This commit is contained in:
@ -30,19 +30,18 @@
|
||||
# and all its subdirectories.
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
|
||||
|
||||
# Normally use standard "make"
|
||||
make="make"
|
||||
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||
|
||||
thisScript=$0
|
||||
if [ "/${thisScript#/}" != "$thisScript" ]
|
||||
then
|
||||
thisScript="$PWD/$thisScript"
|
||||
fi
|
||||
|
||||
unset passArgs runTests
|
||||
skipFirst=false
|
||||
|
||||
# Parse options
|
||||
@ -52,16 +51,15 @@ do
|
||||
-t | -test)
|
||||
passArgs="-test"
|
||||
runTests=true
|
||||
shift
|
||||
;;
|
||||
-s | -skipFirst)
|
||||
skipFirst=true
|
||||
shift
|
||||
;;
|
||||
*)
|
||||
break
|
||||
;;
|
||||
esac
|
||||
shift
|
||||
done
|
||||
|
||||
# If an argument is supplied do not execute ./Allrun to avoid recursion
|
||||
|
||||
Reference in New Issue
Block a user