-
Notifications
You must be signed in to change notification settings - Fork 10
/
Allwmake
executable file
·36 lines (28 loc) · 1.31 KB
/
Allwmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/sh
# Run from geometricVofExt top-level directory only
cd "${0%/*}" || exit
wmake -check-dir "$WM_PROJECT_USER_DIR/modules/geometricVofExt" 2>/dev/null || {
echo "Error (${0##*/}) : not located in \$WM_PROJECT_USER_DIR/modules/geometricVofExt"
echo " Check your OpenFOAM environment and installation"
exit 1
}
. ${WM_PROJECT_DIR:?}/wmake/scripts/AllwmakeParseArguments # (error catching)
export WM_CONTINUE_ON_ERROR=true
#------------------------------------------------------------------------------
echo
echo "******************** Build geometricVofExt package *********************"
echo
echo -n " >> Start time: " && (date "+%Y-%m-%d %H:%M:%S %z" 2>/dev/null || echo "date is unknown")
echo " >> Starting compile ${WM_PROJECT_USER_DIR##*/}/modules/geometricVofExt ${0##*/}"
echo " $WM_COMPILER ${WM_COMPILER_TYPE:-system} compiler [${WM_COMPILE_CONTROL}]"
echo " ${WM_OPTIONS}, with ${WM_MPLIB} ${FOAM_MPI}"
echo
# geometricVofExt libraries
src/Allwmake $targetType $*
# geometricVofExt applications
applications/Allwmake $targetType $*
echo -n " >> End time: " && (date "+%Y-%m-%d %H:%M:%S %z" 2>/dev/null || echo "date is unknown")
echo
echo "********************************* Done *********************************"
echo
#------------------------------------------------------------------------------