2 cd ${0%/*} ||
exit 1 # run from this directory
4 wmakeCheckPwd
"$WM_PROJECT_DIR" ||
{
5 echo "Error: Current directory is not \$WM_PROJECT_DIR"
6 echo " The environment variables are inconsistent with the installation."
7 echo " Check the OpenFOAM entries in your dot-files and source them."
11 [ -n "$FOAM_EXT_LIBBIN" ] ||
{
12 echo "Error: FOAM_EXT_LIBBIN not set"
13 echo " Check the OpenFOAM entries in your dot-files and source them."
17 # wmake is required for subsequent targets
18 ( cd wmake
/src
&& make )
20 # build ThirdParty sources
21 if [ -d "$WM_THIRD_PARTY_DIR" ]
23 $WM_THIRD_PARTY_DIR/Allwmake
25 echo "no ThirdParty sources found - skipping"
28 # build OpenFOAM libraries and applications
37 # ----------------------------------------------------------------- end-of-file