diff --git a/Allwmake b/Allwmake index 749c60fc89db7731f3098bb8c576b94c12f2f4fb..d0110357f83f8007582a812aaf9db25153cf3997 100755 --- a/Allwmake +++ b/Allwmake @@ -1,19 +1,19 @@ #!/bin/sh +cd ${0%/*} || exit 1 # run from this directory set -x -# run from this directory only -cd ${0%/*} || exit 1 - # wmake is required for subsequent targets -(cd wmake/src && make) +( cd wmake/src && make ) -(cd $WM_THIRD_PARTY_DIR && ./Allwmake) +( cd $WM_THIRD_PARTY_DIR && ./Allwmake ) -(cd src && ./Allwmake) +( cd src && ./Allwmake ) -(cd applications && ./Allwmake) +( cd applications && ./Allwmake ) if [ "$1" = doc ] then - (cd doc && ./Allwmake) + ( cd doc && ./Allwmake ) fi + +# ----------------------------------------------------------------- end-of-file diff --git a/applications/Allwmake b/applications/Allwmake index 7437e4f9b04f4bbe4514e75609894b60225e9eb7..0c582570683d1ce06ef041abb5e02c2eb3faed93 100755 --- a/applications/Allwmake +++ b/applications/Allwmake @@ -1,5 +1,8 @@ #!/bin/sh +cd ${0%/*} || exit 1 # run from this directory set -x -( cd solvers && wmake all ) +( cd solvers && wmake all ) ( cd utilities && wmake all ) + +# ----------------------------------------------------------------- end-of-file diff --git a/applications/utilities/mesh/conversion/Optional/Allwmake b/applications/utilities/mesh/conversion/Optional/Allwmake index ca1fbac090eeefb0ce10abb09da231e311ee962f..2db40f48adc82bbfc4cf31f9c9401b5e3c7abe3b 100755 --- a/applications/utilities/mesh/conversion/Optional/Allwmake +++ b/applications/utilities/mesh/conversion/Optional/Allwmake @@ -1,9 +1,11 @@ #!/bin/sh +# # Build optional components (eg, may depend on third-party libraries) +# ----------------------------------------------------------------------------- + +cd ${0%/*} || exit 1 # run from this directory set -x -# run from this directory only -cd ${0%/*} || exit 1 # build libccmio and create lnInclude directory ( diff --git a/applications/utilities/postProcessing/graphics/PV3FoamReader/Allwclean b/applications/utilities/postProcessing/graphics/PV3FoamReader/Allwclean index 206ee020896e33df69584c40ee2f5886ce98c9f7..80507fd289e08db8ef2f8c22208d460eb4ec1503 100755 --- a/applications/utilities/postProcessing/graphics/PV3FoamReader/Allwclean +++ b/applications/utilities/postProcessing/graphics/PV3FoamReader/Allwclean @@ -1,4 +1,5 @@ #!/bin/sh +cd ${0%/*} || exit 1 # run from this directory set -x rm -rf PV3FoamReader/Make diff --git a/applications/utilities/postProcessing/graphics/PV3FoamReader/Allwmake b/applications/utilities/postProcessing/graphics/PV3FoamReader/Allwmake index 9a91c339909b68e43085888cf68592ccf24e302e..a7e703b8c0a978741416ef3364367e2925dc9c06 100755 --- a/applications/utilities/postProcessing/graphics/PV3FoamReader/Allwmake +++ b/applications/utilities/postProcessing/graphics/PV3FoamReader/Allwmake @@ -1,4 +1,5 @@ #!/bin/sh +cd ${0%/*} || exit 1 # run from this directory set -x if [ -d "$ParaView_DIR" -a -r "$ParaView_DIR" ] diff --git a/doc/Allwmake b/doc/Allwmake index 0e4ba76d85611acd889dc76885bf693997005098..e75f1030e2c55e7d1e27df75f17aed1eb2042b67 100755 --- a/doc/Allwmake +++ b/doc/Allwmake @@ -1,4 +1,5 @@ #!/bin/sh +cd ${0%/*} || exit 1 # run from this directory set -x chmod a+rX $WM_PROJECT_DIR @@ -6,3 +7,5 @@ chmod a+rX $WM_PROJECT_DIR/doc chmod -R a+rX Doxygen ( cd Doxygen && ./Allwmake ) + +# ----------------------------------------------------------------- end-of-file diff --git a/doc/Doxygen/Allwmake b/doc/Doxygen/Allwmake index f48d320d001625041f53bf4414981322f34fd3a0..7f9ccb0522b32ab61ea468a925c22d5a789e9ffb 100755 --- a/doc/Doxygen/Allwmake +++ b/doc/Doxygen/Allwmake @@ -5,5 +5,7 @@ umask 22 rm -rf html latex man doxygen -# fix permissions (NB: '-X' and not '-x'!) +# fix permissions (NB: '+X' and not '+x'!) chmod -R a+rX ./ + +# ----------------------------------------------------------------- end-of-file diff --git a/src/Allwmake b/src/Allwmake index 08bb914b740eff477bdfe8019cf9bb665b0f4493..2c532a41aaf587895363cb889a38e819d0e5f64e 100755 --- a/src/Allwmake +++ b/src/Allwmake @@ -1,9 +1,11 @@ #!/bin/sh +cd ${0%/*} || exit 1 # run from this directory set -x ( cd OpenFOAM && wmakeLnInclude . ) ( cd Pstream && ./Allwmake ) -wmake libo OSspecific/$WM_OS + +wmake libo OSspecific/$WM_OS wmake libso OpenFOAM wmake libso lagrangian/basic diff --git a/tutorials/Allclean b/tutorials/Allclean index ac1f12662c3d556b8dc482cc33730485815fbe1f..c72811f9fae68642d7f48847ec2d44515da5a89b 100755 --- a/tutorials/Allclean +++ b/tutorials/Allclean @@ -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 diff --git a/tutorials/Allrun b/tutorials/Allrun index e351dcaddaffbfa91a672012a9a57a0dc854b07d..78bdcb516ab01ee82bfa37e5bb38ad6d1d04c8e7 100755 --- a/tutorials/Allrun +++ b/tutorials/Allrun @@ -30,6 +30,8 @@ # #------------------------------------------------------------------------------ +cd ${0%/*} || exit 1 # run from this directory + # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions diff --git a/tutorials/Alltest b/tutorials/Alltest index ec3da8513b1fc09623253e12e19ade759677cac2..2b5152e8220fe16d7c181e211f53b810ca025a83 100755 --- a/tutorials/Alltest +++ b/tutorials/Alltest @@ -30,6 +30,8 @@ # #------------------------------------------------------------------------------ +cd ${0%/*} || exit 1 # run from this directory + # FUNCTIONS # printUsage () {