openfoam/tutorials/Allclean
Mark Olesen fcd7423fa8 CONFIG: add date and paths information for tutorial Allrun script
STYLE: replace short-circuit Allrun script with Alltest
2021-09-22 17:42:21 +02:00

24 lines
659 B
Bash
Executable File

#!/bin/sh
cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/LogFunctions # Tutorial log-file functions
#------------------------------------------------------------------------------
echo "--------"
# Remove old build/ directory
buildDir="${WM_PROJECT_DIR}/build/${WM_OPTIONS}/${PWD##*/}"
if [ -d "$buildDir" ]
then
echo "Removing old build directory: $buildDir" 1>&2
rm -rf $buildDir
fi
removeLogs
echo "Cleaning tutorials ..."
foamCleanTutorials -self # Run recursively but avoid self
echo "--------"
#------------------------------------------------------------------------------