mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
cleanup wmake scripts
- match comments to names of scripts - remove comments about using C-shell (not true anymore) - use 'assert' style syntax in places instead of if/then/fi - wcleanMachine supports multiple arguments
This commit is contained in:
@ -28,26 +28,18 @@
|
||||
#
|
||||
# Description
|
||||
# Scan the current directory for options and construct Make/options
|
||||
# It has to be written in the C-shell rather than the Bourne shell
|
||||
# because it uses file name manipulators.
|
||||
#
|
||||
# Usage : makeOptions
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
if [ -r "Make/options" ]
|
||||
if [ -r Make/options ]
|
||||
then
|
||||
echo "makeOptions: Make/options already exists, exiting"
|
||||
exit 1
|
||||
echo "makeOptions: Make/options already exists, exiting"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
if [ ! -d "Make" ]
|
||||
then
|
||||
mkdir Make
|
||||
fi
|
||||
|
||||
rulesPath=$WM_DIR/rules/$WM_ARCH
|
||||
[ -d Make ] || mkdir Make
|
||||
|
||||
rm -f Make/options
|
||||
|
||||
|
||||
Reference in New Issue
Block a user