Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100755 38 lines (30 sloc) 0.923 kB
931a91d Initial commit for version 2.0.x patch release
OpenFOAM-admin authored
1 #!/bin/sh
2 cd ${0%/*} || exit 1 # run from this directory
3
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."
8 exit 1
9 }
10
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."
14 exit 1
15 }
16
17 # wmake is required for subsequent targets
18 ( cd wmake/src && make )
19
20 # build ThirdParty sources
21 if [ -d "$WM_THIRD_PARTY_DIR" ]
22 then
23 $WM_THIRD_PARTY_DIR/Allwmake
24 else
25 echo "no ThirdParty sources found - skipping"
26 fi
27
28 # build OpenFOAM libraries and applications
29 src/Allwmake
30 applications/Allwmake
31
32 if [ "$1" = doc ]
33 then
34 doc/Allwmake
35 fi
36
37 # ----------------------------------------------------------------- end-of-file
Something went wrong with that request. Please try again.