mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
TUT: clean out old tutorial build directories
This commit is contained in:
@ -3,6 +3,15 @@ cd ${0%/*} || exit 1 # 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 ..."
|
||||
|
||||
Reference in New Issue
Block a user