mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
sh compatibility
This commit is contained in:
@ -30,7 +30,7 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
. CleanFunctions
|
. ./CleanFunctions
|
||||||
|
|
||||||
echo "Cleaning backup files"
|
echo "Cleaning backup files"
|
||||||
find . -type f \( -name "*~" -o -name "*.bak" \) -exec rm {} \;
|
find . -type f \( -name "*~" -o -name "*.bak" \) -exec rm {} \;
|
||||||
|
|||||||
@ -54,7 +54,7 @@ cleanTimeDirectories ()
|
|||||||
rm -rf $1/${timeDir} > /dev/null 2>&1
|
rm -rf $1/${timeDir} > /dev/null 2>&1
|
||||||
rm -rf $1/-${timeDir} > /dev/null 2>&1
|
rm -rf $1/-${timeDir} > /dev/null 2>&1
|
||||||
zeros=`printf %0${nZeros}d 0`
|
zeros=`printf %0${nZeros}d 0`
|
||||||
let nZeros=nZeros+1
|
nZeros=$(($nZeros + 1))
|
||||||
done
|
done
|
||||||
rm -rf $1/{[1-9]*,-[1-9]*,log,log.*,log-*,logSummary.*,.fxLock,*.xml,ParaView*,paraFoam*,*.foam} > /dev/null 2>&1
|
rm -rf $1/{[1-9]*,-[1-9]*,log,log.*,log-*,logSummary.*,.fxLock,*.xml,ParaView*,paraFoam*,*.foam} > /dev/null 2>&1
|
||||||
}
|
}
|
||||||
|
|||||||
@ -3,7 +3,6 @@
|
|||||||
currDir=`pwd`
|
currDir=`pwd`
|
||||||
application=`basename $currDir`
|
application=`basename $currDir`
|
||||||
cases="forwardStep shockTube"
|
cases="forwardStep shockTube"
|
||||||
utility=setShock
|
|
||||||
|
|
||||||
tutorialPath=`dirname $0`/..
|
tutorialPath=`dirname $0`/..
|
||||||
. $tutorialPath/CleanFunctions
|
. $tutorialPath/CleanFunctions
|
||||||
@ -15,7 +14,6 @@ do
|
|||||||
then
|
then
|
||||||
rm -rf $case/0
|
rm -rf $case/0
|
||||||
cp -r $case/0.org $case/0
|
cp -r $case/0.org $case/0
|
||||||
wclean $case/$utility
|
|
||||||
cleanSamples $case
|
cleanSamples $case
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user