STYLE: more consistent shell style in tutorial run/clean scripts

This commit is contained in:
Mark Olesen
2010-03-10 10:55:42 +01:00
parent 2068c67a33
commit 6b6dd51a27
112 changed files with 721 additions and 260 deletions

View File

@ -1,4 +1,5 @@
#!/bin/sh
cd ${0%/*} || exit 1 # run from this directory
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
@ -7,3 +8,5 @@ cleanCase
rm -rf 0
cp -r 0.org 0
cleanSamples
# ----------------------------------------------------------------- end-of-file

View File

@ -1,4 +1,6 @@
#!/bin/sh
cd ${0%/*} || exit 1 # run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
@ -9,3 +11,5 @@ runApplication setFields
runApplication $application
runApplication foamCalc mag U
runApplication sample
# ----------------------------------------------------------------- end-of-file

View File

@ -1,11 +1,13 @@
#!/bin/sh
cd ${0%/*} || exit 1 # run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
# Get application name
application=`getApplication`
runStarToFoam ()
runStarToFoam()
{
if [ -f log.star3ToFoam -o -f log.starToFoam ]
then
@ -24,3 +26,5 @@ rm temp
runApplication $application
# end-of-file
# ----------------------------------------------------------------- end-of-file