mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
wmake must be made before other targets.
This commit is contained in:
5
Allwmake
5
Allwmake
@ -1,9 +1,10 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
(cd $WM_PROJECT_INST_DIR/ThirdParty && ./Allwmake)
|
# wmake is required for subsequent targets
|
||||||
|
(cd wmake/src && make)
|
||||||
|
|
||||||
(cd wmake && ./makeWmake)
|
(cd $WM_PROJECT_INST_DIR/ThirdParty && ./Allwmake)
|
||||||
|
|
||||||
(cd src && ./Allwmake)
|
(cd src && ./Allwmake)
|
||||||
|
|
||||||
|
|||||||
16
wmake/wmkdir
16
wmake/wmkdir
@ -27,17 +27,21 @@
|
|||||||
# wmkdir
|
# wmkdir
|
||||||
#
|
#
|
||||||
# Description
|
# Description
|
||||||
# Script which makes a directory is not already constucted.
|
# Script that makes a directory is not already constructed.
|
||||||
# Usage : wmkdir <directoryName>
|
# Usage : wmkdir <directoryName>
|
||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
if [ $# = 1 ]
|
if [ $# -eq 1 ]
|
||||||
then
|
then
|
||||||
if [ ! -d $1 ]
|
# provide help
|
||||||
then
|
if [ "$1" = "-h" -o "$1" = "-help" ]
|
||||||
mkdir -p $1
|
then
|
||||||
fi
|
echo "usage: ${0##*/} <dir>"
|
||||||
|
echo " mkdir if directory does not already exist"
|
||||||
|
else
|
||||||
|
[ -d "$1" ] || mkdir -p "$1"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user