can call Allwmake scripts directly instead of with ( cd foo && ./Allwmake )

This commit is contained in:
Mark Olesen
2008-11-05 10:39:06 +01:00
parent 9705520e24
commit 5d0b3348c5
9 changed files with 33 additions and 26 deletions

View File

@ -5,15 +5,15 @@ set -x
# wmake is required for subsequent targets # wmake is required for subsequent targets
( cd wmake/src && make ) ( cd wmake/src && make )
# build ThirdParty sources
( cd $WM_THIRD_PARTY_DIR && ./Allwmake ) ( cd $WM_THIRD_PARTY_DIR && ./Allwmake )
( cd src && ./Allwmake ) src/Allwmake
applications/Allwmake
( cd applications && ./Allwmake )
if [ "$1" = doc ] if [ "$1" = doc ]
then then
( cd doc && ./Allwmake ) doc/Allwmake
fi fi
# ----------------------------------------------------------------- end-of-file # ----------------------------------------------------------------- end-of-file

View File

@ -2,7 +2,7 @@
cd ${0%/*} || exit 1 # run from this directory cd ${0%/*} || exit 1 # run from this directory
set -x set -x
( cd solvers && wmake all ) wmake all solvers
( cd utilities && wmake all ) wmake all utilities
# ----------------------------------------------------------------- end-of-file # ----------------------------------------------------------------- end-of-file

View File

@ -7,14 +7,12 @@ set -x
# build libccmio and create lnInclude directory # build libccmio and create lnInclude directory
( ( cd $WM_THIRD_PARTY_DIR && ./AllwmakeLibccmio )
cd $WM_THIRD_PARTY_DIR && ./AllwmakeLibccmio
)
# if the library built okay, the headers should exist too # if the library built properly, the headers should exist too
if [ -e $FOAM_LIBBIN/libccmio.so ] if [ -e $FOAM_LIBBIN/libccmio.so ]
then then
wmake ccm26ToFoam wmake ccm26ToFoam
fi fi
# ----------------------------------------------------------------- end-of-file # ----------------------------------------------------------------- end-of-file

View File

@ -2,8 +2,9 @@
cd ${0%/*} || exit 1 # run from this directory cd ${0%/*} || exit 1 # run from this directory
READLINE=0 READLINE=0
if [ -f /usr/include/readline/readline.h ]; then if [ -f /usr/include/readline/readline.h ]
echo "Found readline/readline.h include file. Enabling readline support." then
echo "Found readline/readline.h -- enabling readline support."
READLINE=1 READLINE=1
export READLINELINK="-lreadline -lncurses" export READLINELINK="-lreadline -lncurses"
break break

View File

@ -6,6 +6,6 @@ chmod a+rX $WM_PROJECT_DIR
chmod a+rX $WM_PROJECT_DIR/doc chmod a+rX $WM_PROJECT_DIR/doc
chmod -R a+rX Doxygen chmod -R a+rX Doxygen
( cd Doxygen && ./Allwmake ) Doxygen/Allwmake
# ----------------------------------------------------------------- end-of-file # ----------------------------------------------------------------- end-of-file

View File

@ -4,7 +4,7 @@ set -x
wmakeLnInclude -f OpenFOAM wmakeLnInclude -f OpenFOAM
wmakeLnInclude -f OSspecific/$WM_OS wmakeLnInclude -f OSspecific/$WM_OS
( cd Pstream && ./Allwmake ) Pstream/Allwmake
wmake libo OSspecific/$WM_OS wmake libo OSspecific/$WM_OS
wmake libso OpenFOAM wmake libso OpenFOAM
@ -17,7 +17,7 @@ wmake libso surfMesh
wmake libso meshTools wmake libso meshTools
wmake libso finiteVolume wmake libso finiteVolume
( cd decompositionAgglomeration && ./Allwmake ) decompositionAgglomeration/Allwmake
wmake libso sampling wmake libso sampling
@ -30,12 +30,12 @@ wmake libso engine
wmake libso ODE wmake libso ODE
wmake libso randomProcesses wmake libso randomProcesses
( cd thermophysicalModels && ./Allwmake ) thermophysicalModels/Allwmake
( cd transportModels && ./Allwmake ) transportModels/Allwmake
( cd turbulenceModels && ./Allwmake ) turbulenceModels/Allwmake
( cd lagrangian && ./Allwmake ) lagrangian/Allwmake
( cd postProcessing && ./Allwmake ) postProcessing/Allwmake
( cd conversion && ./Allwmake ) conversion/Allwmake
wmake libso autoMesh wmake libso autoMesh
wmake libso errorEstimation wmake libso errorEstimation

View File

@ -6,7 +6,7 @@ wmake libso basic
wmake libso solidParticle wmake libso solidParticle
wmake libso intermediate wmake libso intermediate
wmake libso dieselSpray wmake libso dieselSpray
(cd molecularDynamics && wmake libso potential)
(cd molecularDynamics && wmake libso molecule) molecularDynamics/Allwmake
# ----------------------------------------------------------------- end-of-file # ----------------------------------------------------------------- end-of-file

View File

@ -0,0 +1,8 @@
#!/bin/sh
cd ${0%/*} || exit 1 # run from this directory
set -x
wmake libso potential
wmake libso molecule
# ----------------------------------------------------------------- end-of-file

View File

@ -2,7 +2,7 @@
cd ${0%/*} || exit 1 # run from this directory cd ${0%/*} || exit 1 # run from this directory
set -x set -x
( cd RAS && ./Allwmake ) RAS/Allwmake
( cd LES && ./Allwmake ) LES/Allwmake
# ----------------------------------------------------------------- end-of-file # ----------------------------------------------------------------- end-of-file