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
|
. $WM_PROJECT_DIR/bin/tools/LogFunctions # Tutorial log-file functions
|
||||||
|
|
||||||
echo "--------"
|
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
|
removeLogs
|
||||||
|
|
||||||
echo "Cleaning tutorials ..."
|
echo "Cleaning tutorials ..."
|
||||||
|
|||||||
@ -7,20 +7,8 @@
|
|||||||
# \\/ M anipulation | Copyright (C) 2017 OpenCFD Ltd.
|
# \\/ M anipulation | Copyright (C) 2017 OpenCFD Ltd.
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
# This file is part of OpenFOAM.
|
# This file is part of OpenFOAM, licensed under GNU General Public License
|
||||||
#
|
# <http://www.gnu.org/licenses/>.
|
||||||
# OpenFOAM is free software: you can redistribute it and/or modify it
|
|
||||||
# under the terms of the GNU General Public License as published by
|
|
||||||
# the Free Software Foundation, either version 3 of the License, or
|
|
||||||
# (at your option) any later version.
|
|
||||||
#
|
|
||||||
# OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
|
|
||||||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
||||||
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
||||||
# for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License
|
|
||||||
# along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
#
|
#
|
||||||
# Script
|
# Script
|
||||||
# Alltest
|
# Alltest
|
||||||
@ -101,9 +89,8 @@ done
|
|||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# set up a default scheme on all schemes
|
# Set up a default scheme on all schemes
|
||||||
#
|
#
|
||||||
setDefaultFvSchemes()
|
setDefaultFvSchemes()
|
||||||
{
|
{
|
||||||
@ -180,6 +167,14 @@ then
|
|||||||
rm -rf $TEST_RUN_DIR
|
rm -rf $TEST_RUN_DIR
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Remove old build/ directory
|
||||||
|
buildDir="$WM_PROJECT_DIR/build/${WM_OPTIONS}/${TEST_RUN_DIR##*/}"
|
||||||
|
if [ -d "$buildDir" ]
|
||||||
|
then
|
||||||
|
echo "Removing old build directory: $buildDir" 1>&2
|
||||||
|
rm -rf $buildDir
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Modifying ${MAIN_CONTROL_DICT}" 1>&2
|
echo "Modifying ${MAIN_CONTROL_DICT}" 1>&2
|
||||||
if [ -e ${MAIN_CONTROL_DICT}.orig ]
|
if [ -e ${MAIN_CONTROL_DICT}.orig ]
|
||||||
then
|
then
|
||||||
|
|||||||
Reference in New Issue
Block a user