sh compatibility

This commit is contained in:
Henry Weller
2008-05-30 10:10:12 +01:00
parent a22813da28
commit 9ae900e175
3 changed files with 2 additions and 4 deletions

View File

@ -30,7 +30,7 @@
#
#------------------------------------------------------------------------------
. CleanFunctions
. ./CleanFunctions
echo "Cleaning backup files"
find . -type f \( -name "*~" -o -name "*.bak" \) -exec rm {} \;

View File

@ -54,7 +54,7 @@ cleanTimeDirectories ()
rm -rf $1/${timeDir} > /dev/null 2>&1
rm -rf $1/-${timeDir} > /dev/null 2>&1
zeros=`printf %0${nZeros}d 0`
let nZeros=nZeros+1
nZeros=$(($nZeros + 1))
done
rm -rf $1/{[1-9]*,-[1-9]*,log,log.*,log-*,logSummary.*,.fxLock,*.xml,ParaView*,paraFoam*,*.foam} > /dev/null 2>&1
}

View File

@ -3,7 +3,6 @@
currDir=`pwd`
application=`basename $currDir`
cases="forwardStep shockTube"
utility=setShock
tutorialPath=`dirname $0`/..
. $tutorialPath/CleanFunctions
@ -15,7 +14,6 @@ do
then
rm -rf $case/0
cp -r $case/0.org $case/0
wclean $case/$utility
cleanSamples $case
fi
done