TUT: script cleanup, provide cleanCase0 for commonly used operation

This commit is contained in:
Mark Olesen
2017-10-12 19:20:56 +02:00
parent e16121af68
commit c792a9d7df
460 changed files with 1280 additions and 2126 deletions

View File

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