TUT: clean out old tutorial build directories

This commit is contained in:
Mark Olesen
2018-03-26 15:54:31 +02:00
parent 36719bf55b
commit db76bbbac0
2 changed files with 20 additions and 16 deletions

View File

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