From d5d80f0181f7b9ba8420eb00fcd15e463037709c Mon Sep 17 00:00:00 2001 From: Mark Olesen Date: Fri, 19 Sep 2008 14:47:06 +0200 Subject: [PATCH] modified remaining Allwmake scripts to run from anywhere --- applications/solvers/compressible/rhoCentralFoam/Allwmake | 3 +++ applications/solvers/compressible/rhopSonicFoam/Allwmake | 3 +++ applications/solvers/multiphase/twoPhaseEulerFoam/Allwmake | 3 +++ applications/utilities/mesh/conversion/Optional/Allwmake | 3 +-- applications/utilities/mesh/generation/extrudeMesh/Allwmake | 2 ++ applications/utilities/mesh/manipulation/setSet/Allwmake | 3 +++ .../utilities/postProcessing/graphics/PV3FoamReader/Allwmake | 2 ++ .../utilities/postProcessing/graphics/PVFoamReader/Allwmake | 3 +++ .../postProcessing/graphics/ensightFoamReader/Allwmake | 4 ++++ doc/Doxygen/Allwmake | 1 + src/Pstream/Allwmake | 2 ++ src/conversion/Allwmake | 3 +++ src/decompositionAgglomeration/Allwmake | 1 + src/lagrangian/Allwmake | 2 ++ src/postProcessing/Allwmake | 3 ++- src/thermophysicalModels/Allwmake | 2 ++ src/transportModels/Allwmake | 5 ++++- src/turbulenceModels/Allwmake | 3 +++ src/turbulenceModels/LES/Allwmake | 3 +++ src/turbulenceModels/RAS/Allwmake | 3 +++ 20 files changed, 50 insertions(+), 4 deletions(-) diff --git a/applications/solvers/compressible/rhoCentralFoam/Allwmake b/applications/solvers/compressible/rhoCentralFoam/Allwmake index 69a108d537..698558da0b 100755 --- a/applications/solvers/compressible/rhoCentralFoam/Allwmake +++ b/applications/solvers/compressible/rhoCentralFoam/Allwmake @@ -1,5 +1,8 @@ #!/bin/sh +cd ${0%/*} || exit 1 # run from this directory +set -x wmake libso BCs wmake +# ----------------------------------------------------------------- end-of-file diff --git a/applications/solvers/compressible/rhopSonicFoam/Allwmake b/applications/solvers/compressible/rhopSonicFoam/Allwmake index cccfd63757..698558da0b 100755 --- a/applications/solvers/compressible/rhopSonicFoam/Allwmake +++ b/applications/solvers/compressible/rhopSonicFoam/Allwmake @@ -1,5 +1,8 @@ #!/bin/sh +cd ${0%/*} || exit 1 # run from this directory set -x wmake libso BCs wmake + +# ----------------------------------------------------------------- end-of-file diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/Allwmake b/applications/solvers/multiphase/twoPhaseEulerFoam/Allwmake index 8314bfa069..29294d166a 100755 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/Allwmake +++ b/applications/solvers/multiphase/twoPhaseEulerFoam/Allwmake @@ -1,7 +1,10 @@ #!/bin/sh +cd ${0%/*} || exit 1 # run from this directory set -x wmake libso phaseModel wmake libso interfacialModels wmake libso kineticTheoryModels wmake + +# ----------------------------------------------------------------- end-of-file diff --git a/applications/utilities/mesh/conversion/Optional/Allwmake b/applications/utilities/mesh/conversion/Optional/Allwmake index 2db40f48ad..2734e41562 100755 --- a/applications/utilities/mesh/conversion/Optional/Allwmake +++ b/applications/utilities/mesh/conversion/Optional/Allwmake @@ -2,7 +2,6 @@ # # Build optional components (eg, may depend on third-party libraries) # ----------------------------------------------------------------------------- - cd ${0%/*} || exit 1 # run from this directory set -x @@ -18,4 +17,4 @@ then wmake ccm26ToFoam fi -# end +# ----------------------------------------------------------------- end-of-file diff --git a/applications/utilities/mesh/generation/extrudeMesh/Allwmake b/applications/utilities/mesh/generation/extrudeMesh/Allwmake index 876125ce82..871cad2b68 100755 --- a/applications/utilities/mesh/generation/extrudeMesh/Allwmake +++ b/applications/utilities/mesh/generation/extrudeMesh/Allwmake @@ -1,6 +1,8 @@ #!/bin/sh +cd ${0%/*} || exit 1 # run from this directory set -x wmake libso extrudeModel wmake +# ----------------------------------------------------------------- end-of-file diff --git a/applications/utilities/mesh/manipulation/setSet/Allwmake b/applications/utilities/mesh/manipulation/setSet/Allwmake index 35e3af7c1b..e10d037cbc 100755 --- a/applications/utilities/mesh/manipulation/setSet/Allwmake +++ b/applications/utilities/mesh/manipulation/setSet/Allwmake @@ -1,4 +1,5 @@ #!/bin/sh +cd ${0%/*} || exit 1 # run from this directory READLINE=0 if [ -f /usr/include/readline/readline.h ]; then @@ -9,3 +10,5 @@ if [ -f /usr/include/readline/readline.h ]; then fi export READLINE wmake + +# ----------------------------------------------------------------- end-of-file diff --git a/applications/utilities/postProcessing/graphics/PV3FoamReader/Allwmake b/applications/utilities/postProcessing/graphics/PV3FoamReader/Allwmake index a7e703b8c0..c7a80fc7fb 100755 --- a/applications/utilities/postProcessing/graphics/PV3FoamReader/Allwmake +++ b/applications/utilities/postProcessing/graphics/PV3FoamReader/Allwmake @@ -17,3 +17,5 @@ then ;; esac fi + +# ----------------------------------------------------------------- end-of-file diff --git a/applications/utilities/postProcessing/graphics/PVFoamReader/Allwmake b/applications/utilities/postProcessing/graphics/PVFoamReader/Allwmake index ea67e28d5b..b1106aa608 100755 --- a/applications/utilities/postProcessing/graphics/PVFoamReader/Allwmake +++ b/applications/utilities/postProcessing/graphics/PVFoamReader/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" ] @@ -16,3 +17,5 @@ then ;; esac fi + +# ----------------------------------------------------------------- end-of-file diff --git a/applications/utilities/postProcessing/graphics/ensightFoamReader/Allwmake b/applications/utilities/postProcessing/graphics/ensightFoamReader/Allwmake index aca3e014c9..f29cdda208 100755 --- a/applications/utilities/postProcessing/graphics/ensightFoamReader/Allwmake +++ b/applications/utilities/postProcessing/graphics/ensightFoamReader/Allwmake @@ -1,2 +1,6 @@ #!/bin/sh +cd ${0%/*} || exit 1 # run from this directory + wmake libso + +# ----------------------------------------------------------------- end-of-file diff --git a/doc/Doxygen/Allwmake b/doc/Doxygen/Allwmake index 7f9ccb0522..dab44579b8 100755 --- a/doc/Doxygen/Allwmake +++ b/doc/Doxygen/Allwmake @@ -1,4 +1,5 @@ #!/bin/sh +cd ${0%/*} || exit 1 # run from this directory set -x umask 22 diff --git a/src/Pstream/Allwmake b/src/Pstream/Allwmake index eb51ef379e..4398b810f9 100755 --- a/src/Pstream/Allwmake +++ b/src/Pstream/Allwmake @@ -1,4 +1,5 @@ #!/bin/sh +cd ${0%/*} || exit 1 # run from this directory set -x wmake libso dummy @@ -18,3 +19,4 @@ GAMMA) ;; esac +# ----------------------------------------------------------------- end-of-file diff --git a/src/conversion/Allwmake b/src/conversion/Allwmake index 72e9c2b141..a7168eeab1 100755 --- a/src/conversion/Allwmake +++ b/src/conversion/Allwmake @@ -1,4 +1,7 @@ #!/bin/sh +cd ${0%/*} || exit 1 # run from this directory set -x wmake libso + +# ----------------------------------------------------------------- end-of-file diff --git a/src/decompositionAgglomeration/Allwmake b/src/decompositionAgglomeration/Allwmake index 62018ac3fc..144244776f 100755 --- a/src/decompositionAgglomeration/Allwmake +++ b/src/decompositionAgglomeration/Allwmake @@ -1,4 +1,5 @@ #!/bin/sh +cd ${0%/*} || exit 1 # run from this directory set -x wmake libso decompositionMethods diff --git a/src/lagrangian/Allwmake b/src/lagrangian/Allwmake index 0a5e86bdef..a3aa179490 100755 --- a/src/lagrangian/Allwmake +++ b/src/lagrangian/Allwmake @@ -1,4 +1,5 @@ #!/bin/sh +cd ${0%/*} || exit 1 # run from this directory set -x wmake libso basic @@ -8,3 +9,4 @@ wmake libso dieselSpray (cd molecularDynamics && wmake libso potential) (cd molecularDynamics && wmake libso molecule) +# ----------------------------------------------------------------- end-of-file diff --git a/src/postProcessing/Allwmake b/src/postProcessing/Allwmake index a7b00e35a3..f67ba57aa1 100755 --- a/src/postProcessing/Allwmake +++ b/src/postProcessing/Allwmake @@ -1,4 +1,5 @@ #!/bin/sh +cd ${0%/*} || exit 1 # run from this directory set -x wmake libo postCalc @@ -6,4 +7,4 @@ wmake libso forces wmake libso fieldAverage wmake libso foamCalcFunctions - +# ----------------------------------------------------------------- end-of-file diff --git a/src/thermophysicalModels/Allwmake b/src/thermophysicalModels/Allwmake index 69a99a09ad..62175e440f 100755 --- a/src/thermophysicalModels/Allwmake +++ b/src/thermophysicalModels/Allwmake @@ -1,4 +1,5 @@ #!/bin/sh +cd ${0%/*} || exit 1 # run from this directory set -x wmake libso specie @@ -16,3 +17,4 @@ wmake libso pdfs wmake libso radiation wmake libso barotropicCompressibilityModel +# ----------------------------------------------------------------- end-of-file diff --git a/src/transportModels/Allwmake b/src/transportModels/Allwmake index fed5ed5fc1..7272653e0d 100755 --- a/src/transportModels/Allwmake +++ b/src/transportModels/Allwmake @@ -1,6 +1,9 @@ #!/bin/sh +cd ${0%/*} || exit 1 # run from this directory set -x wmake libso incompressible wmake libso interfaceProperties -#wmake libso compressible +# wmake libso compressible + +# ----------------------------------------------------------------- end-of-file diff --git a/src/turbulenceModels/Allwmake b/src/turbulenceModels/Allwmake index a05e81fc00..b4633551ac 100755 --- a/src/turbulenceModels/Allwmake +++ b/src/turbulenceModels/Allwmake @@ -1,5 +1,8 @@ #!/bin/sh +cd ${0%/*} || exit 1 # run from this directory set -x ( cd RAS && ./Allwmake ) ( cd LES && ./Allwmake ) + +# ----------------------------------------------------------------- end-of-file diff --git a/src/turbulenceModels/LES/Allwmake b/src/turbulenceModels/LES/Allwmake index a8a3a782d0..bd99dd1f4e 100755 --- a/src/turbulenceModels/LES/Allwmake +++ b/src/turbulenceModels/LES/Allwmake @@ -1,4 +1,5 @@ #!/bin/sh +cd ${0%/*} || exit 1 # run from this directory set -x wmake libso LESfilters @@ -6,3 +7,5 @@ wmakeLnInclude incompressible wmake libso LESdeltas wmake libso incompressible wmake libso compressible + +# ----------------------------------------------------------------- end-of-file diff --git a/src/turbulenceModels/RAS/Allwmake b/src/turbulenceModels/RAS/Allwmake index 5ccba2b371..5761ba6ffd 100755 --- a/src/turbulenceModels/RAS/Allwmake +++ b/src/turbulenceModels/RAS/Allwmake @@ -1,5 +1,8 @@ #!/bin/sh +cd ${0%/*} || exit 1 # run from this directory set -x wmake libso incompressible wmake libso compressible + +# ----------------------------------------------------------------- end-of-file