- provide default WM_DIR if not already set, to improve robustness if a
reduced environment is used
- add etc/ to WM_PROJECT_SITE search. This makes the site directory
structure consistent with the OpenFOAM structure.
Eg,
WM_PROJECT_SITE/etc/..
WM_PROJECT_SITE/bin/..
WM_PROJECT_SITE/platforms/..
- Don't set/export WM_OSTYPE. The default is POSIX and is properly
defaulted throughout, including in CMakeLists-OpenFOAM.txt (also for
Catalyst)
13 lines
356 B
Bash
Executable File
13 lines
356 B
Bash
Executable File
#!/bin/sh
|
|
cd "${0%/*}" || exit 1 # Run from this directory
|
|
|
|
if [ -z "$WM_DIR" ] # Require WM_DIR
|
|
then
|
|
WM_DIR="$(\cd $(dirname $0)/.. && \pwd -L)"
|
|
export WM_DIR
|
|
fi
|
|
|
|
make # Compile tools for wmake
|
|
|
|
#------------------------------------------------------------------------------
|