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
|
||||
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)
|
||||
|
||||
|
||||
16
wmake/wmkdir
16
wmake/wmkdir
@ -27,17 +27,21 @@
|
||||
# wmkdir
|
||||
#
|
||||
# Description
|
||||
# Script which makes a directory is not already constucted.
|
||||
# Script that makes a directory is not already constructed.
|
||||
# Usage : wmkdir <directoryName>
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
if [ $# = 1 ]
|
||||
if [ $# -eq 1 ]
|
||||
then
|
||||
if [ ! -d $1 ]
|
||||
then
|
||||
mkdir -p $1
|
||||
fi
|
||||
# provide help
|
||||
if [ "$1" = "-h" -o "$1" = "-help" ]
|
||||
then
|
||||
echo "usage: ${0##*/} <dir>"
|
||||
echo " mkdir if directory does not already exist"
|
||||
else
|
||||
[ -d "$1" ] || mkdir -p "$1"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user