Be pickier about only running certain scripts from the cwd

This commit is contained in:
Mark Olesen
2008-08-09 18:50:27 +02:00
parent 679fd493ca
commit 7be206a5f3
11 changed files with 34 additions and 14 deletions

View File

@ -30,10 +30,12 @@
#
#------------------------------------------------------------------------------
cd ${0%/*} || exit 1 # run from this directory
echo "Cleaning backup files"
find . -type f \( -name "*~" -o -name "*.bak" \) -exec rm {} \;
find . \( -name 'core' -o -name 'core.[1-9]*' \) -exec rm {} \;
find . \( -name '*.pvs' -o -name '*.foam' \) -exec rm {} \;
find . \( -name '*.pvs' -o -name '*.OpenFOAM' \) -exec rm {} \;
rm logs > /dev/null 2>&1
rm testLoopReport > /dev/null 2>&1

View File

@ -30,6 +30,8 @@
#
#------------------------------------------------------------------------------
cd ${0%/*} || exit 1 # run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions

View File

@ -30,6 +30,8 @@
#
#------------------------------------------------------------------------------
cd ${0%/*} || exit 1 # run from this directory
# FUNCTIONS
#
printUsage () {