mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: move internal wmake scripts to scripts/ directory
- more consistent script names - remove '-help' option from internal scripts
This commit is contained in:
@ -2,7 +2,7 @@
|
|||||||
# ========= |
|
# ========= |
|
||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
# \\ / O peration |
|
# \\ / O peration |
|
||||||
# \\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd.
|
# \\ / A nd | Copyright (C) 1991-2010 OpenCFD Ltd.
|
||||||
# \\/ M anipulation |
|
# \\/ M anipulation |
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
@ -31,7 +31,7 @@
|
|||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# The Makefile use a POSIX shell
|
# The Makefile uses a POSIX shell
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
SHELL = /bin/sh
|
SHELL = /bin/sh
|
||||||
@ -120,7 +120,7 @@ MAKE_DEP = @$(MKDEP) $< | $(WM_SCRIPTS)/addCompile $<
|
|||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# Include PROJECT directory tree file and
|
# Include PROJECT directory tree file and
|
||||||
# source, object and dependency list files.
|
# source, object and dependency list files.
|
||||||
# These are constructed by wmakeDerivedFiles
|
# These are constructed by scripts/makeDerivedFiles
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
include $(OBJECTS_DIR)/options
|
include $(OBJECTS_DIR)/options
|
||||||
@ -148,7 +148,7 @@ LIB_HEADER_DIRS = \
|
|||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
$(EXE): $(OBJECTS)
|
$(EXE): $(OBJECTS)
|
||||||
@$(WM_SCRIPTS)/mkObjectDir $(EXE)
|
@$(WM_SCRIPTS)/makeTargetDir $(EXE)
|
||||||
$(LINKEXE) $(OBJECTS) -L$(LIB_WM_OPTIONS_DIR) \
|
$(LINKEXE) $(OBJECTS) -L$(LIB_WM_OPTIONS_DIR) \
|
||||||
$(EXE_LIBS) $(PROJECT_LIBS) $(SYS_LIBS) $(LINK_LIBS) $(GLIBS) -o $(EXE)
|
$(EXE_LIBS) $(PROJECT_LIBS) $(SYS_LIBS) $(LINK_LIBS) $(GLIBS) -o $(EXE)
|
||||||
|
|
||||||
@ -156,7 +156,7 @@ exe: $(SEXE)
|
|||||||
@echo \'$(SEXE)\' is up to date.
|
@echo \'$(SEXE)\' is up to date.
|
||||||
|
|
||||||
$(SEXE): $(OBJECTS)
|
$(SEXE): $(OBJECTS)
|
||||||
@$(WM_SCRIPTS)/mkObjectDir $(SEXE)
|
@$(WM_SCRIPTS)/makeTargetDir $(SEXE)
|
||||||
$(LINKEXE) $(OBJECTS) $(EXE_LIBS) \
|
$(LINKEXE) $(OBJECTS) $(EXE_LIBS) \
|
||||||
$(SYS_LIBS) $(LINK_LIBS) $(GLIBS) -o $(SEXE)
|
$(SYS_LIBS) $(LINK_LIBS) $(GLIBS) -o $(SEXE)
|
||||||
|
|
||||||
@ -169,7 +169,7 @@ libso: $(LIB).$(SO)
|
|||||||
@echo \'$(LIB).$(SO)\' is up to date.
|
@echo \'$(LIB).$(SO)\' is up to date.
|
||||||
|
|
||||||
$(LIB).$(SO): $(OBJECTS)
|
$(LIB).$(SO): $(OBJECTS)
|
||||||
@$(WM_SCRIPTS)/mkObjectDir $(LIB)
|
@$(WM_SCRIPTS)/makeTargetDir $(LIB)
|
||||||
@rm -f so_locations
|
@rm -f so_locations
|
||||||
@cd $(OBJECTS_DIR) ; \
|
@cd $(OBJECTS_DIR) ; \
|
||||||
$(LINKLIBSO) $(LOCAL_OBJECTS) -L$(LIB_WM_OPTIONS_DIR) $(LIB_LIBS) $(GLIB_LIBS) -o $(LIB).$(SO)
|
$(LINKLIBSO) $(LOCAL_OBJECTS) -L$(LIB_WM_OPTIONS_DIR) $(LIB_LIBS) $(GLIB_LIBS) -o $(LIB).$(SO)
|
||||||
@ -178,7 +178,7 @@ lib: $(LIB).a
|
|||||||
@echo \'$(LIB).a\' is up to date.
|
@echo \'$(LIB).a\' is up to date.
|
||||||
|
|
||||||
$(LIB).a: $(OBJECTS)
|
$(LIB).a: $(OBJECTS)
|
||||||
@$(WM_SCRIPTS)/mkObjectDir $(LIB)
|
@$(WM_SCRIPTS)/makeTargetDir $(LIB)
|
||||||
@rm -f $(LIB).a
|
@rm -f $(LIB).a
|
||||||
$(AR) $(ARFLAGS) $(LIB).a $(OBJECTS)
|
$(AR) $(ARFLAGS) $(LIB).a $(OBJECTS)
|
||||||
$(RANLIB) $(LIB).a
|
$(RANLIB) $(LIB).a
|
||||||
@ -187,7 +187,7 @@ libo: $(LIB).o
|
|||||||
@echo \'$(LIB).o\' is up to date.
|
@echo \'$(LIB).o\' is up to date.
|
||||||
|
|
||||||
$(LIB).o: $(OBJECTS)
|
$(LIB).o: $(OBJECTS)
|
||||||
@$(WM_SCRIPTS)/mkObjectDir $(LIB)
|
@$(WM_SCRIPTS)/makeTargetDir $(LIB)
|
||||||
@rm -f $(LIB).o
|
@rm -f $(LIB).o
|
||||||
$(LD) -r -o $(LIB).o $(OBJECTS)
|
$(LD) -r -o $(LIB).o $(OBJECTS)
|
||||||
|
|
||||||
@ -195,7 +195,7 @@ jar: $(LIB).jar
|
|||||||
@echo \'$(LIB).jar\' is up to date.
|
@echo \'$(LIB).jar\' is up to date.
|
||||||
|
|
||||||
$(LIB).jar: $(OBJECTS)
|
$(LIB).jar: $(OBJECTS)
|
||||||
@$(WM_SCRIPTS)/mkObjectDir $(LIB)
|
@$(WM_SCRIPTS)/makeTargetDir $(LIB)
|
||||||
jar cfm $(LIB).jar $(LIB_LIBS) -C $(CLASSES_DIR) .
|
jar cfm $(LIB).jar $(LIB_LIBS) -C $(CLASSES_DIR) .
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
# ========= |
|
# ========= |
|
||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
# \\ / O peration |
|
# \\ / O peration |
|
||||||
# \\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd.
|
# \\ / A nd | Copyright (C) 1991-2010 OpenCFD Ltd.
|
||||||
# \\/ M anipulation |
|
# \\/ M anipulation |
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
# ========= |
|
# ========= |
|
||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
# \\ / O peration |
|
# \\ / O peration |
|
||||||
# \\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd.
|
# \\ / A nd | Copyright (C) 1991-2010 OpenCFD Ltd.
|
||||||
# \\/ M anipulation |
|
# \\/ M anipulation |
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
@ -32,6 +32,7 @@
|
|||||||
|
|
||||||
GENERAL_RULES = $(WM_DIR)/rules/General
|
GENERAL_RULES = $(WM_DIR)/rules/General
|
||||||
RULES = $(WM_DIR)/rules/$(WM_ARCH)$(WM_COMPILER)
|
RULES = $(WM_DIR)/rules/$(WM_ARCH)$(WM_COMPILER)
|
||||||
|
WM_SCRIPTS = $(WM_DIR)/scripts
|
||||||
OBJECTS_DIR = $(WM_OPTIONS)
|
OBJECTS_DIR = $(WM_OPTIONS)
|
||||||
FFLAGS =
|
FFLAGS =
|
||||||
|
|
||||||
@ -61,16 +62,16 @@ $(FILES) : files
|
|||||||
@$(CPP) $(GFLAGS) $(FFLAGS) files > $(FILES)
|
@$(CPP) $(GFLAGS) $(FFLAGS) files > $(FILES)
|
||||||
|
|
||||||
$(SFILES): files
|
$(SFILES): files
|
||||||
@wmakeDerivedFiles
|
@$(WM_SCRIPTS)/makeDerivedFiles
|
||||||
|
|
||||||
$(OFILES): files
|
$(OFILES): files
|
||||||
@wmakeDerivedFiles
|
@$(WM_SCRIPTS)/makeDerivedFiles
|
||||||
|
|
||||||
$(DFILES): files
|
$(DFILES): files
|
||||||
@wmakeDerivedFiles
|
@$(WM_SCRIPTS)/makeDerivedFiles
|
||||||
|
|
||||||
$(IFILES): files
|
$(IFILES): files
|
||||||
@wmakeDerivedFiles
|
@$(WM_SCRIPTS)/makeDerivedFiles
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
# ========= |
|
# ========= |
|
||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
# \\ / O peration |
|
# \\ / O peration |
|
||||||
# \\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd.
|
# \\ / A nd | Copyright (C) 1991-2010 OpenCFD Ltd.
|
||||||
# \\/ M anipulation |
|
# \\/ M anipulation |
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
@ -32,6 +32,7 @@
|
|||||||
|
|
||||||
GENERAL_RULES = $(WM_DIR)/rules/General
|
GENERAL_RULES = $(WM_DIR)/rules/General
|
||||||
RULES = $(WM_DIR)/rules/$(WM_ARCH)$(WM_COMPILER)
|
RULES = $(WM_DIR)/rules/$(WM_ARCH)$(WM_COMPILER)
|
||||||
|
WM_SCRIPTS = $(WM_DIR)/scripts
|
||||||
|
|
||||||
include $(GENERAL_RULES)/general
|
include $(GENERAL_RULES)/general
|
||||||
include $(RULES)/general
|
include $(RULES)/general
|
||||||
@ -47,8 +48,8 @@ OPTIONS = $(WM_OPTIONS)/options
|
|||||||
# Causes all derived files to be remade if any are changed or missing
|
# Causes all derived files to be remade if any are changed or missing
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
$(OPTIONS) : options
|
$(OPTIONS) : options
|
||||||
@wmkdir $(WM_OPTIONS) ; $(CPP) $(GFLAGS) options > $(OPTIONS)
|
@$(WM_SCRIPTS)/makeDir $(WM_OPTIONS) ; $(CPP) $(GFLAGS) options > $(OPTIONS)
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
# ========= |
|
# ========= |
|
||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
# \\ / O peration |
|
# \\ / O peration |
|
||||||
# \\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd.
|
# \\ / A nd | Copyright (C) 1991-2010 OpenCFD Ltd.
|
||||||
# \\/ M anipulation |
|
# \\/ M anipulation |
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
# ========= |
|
# ========= |
|
||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
# \\ / O peration |
|
# \\ / O peration |
|
||||||
# \\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd.
|
# \\ / A nd | Copyright (C) 1991-2010 OpenCFD Ltd.
|
||||||
# \\/ M anipulation |
|
# \\/ M anipulation |
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
# ========= |
|
# ========= |
|
||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
# \\ / O peration |
|
# \\ / O peration |
|
||||||
# \\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd.
|
# \\ / A nd | Copyright (C) 1991-2010 OpenCFD Ltd.
|
||||||
# \\/ M anipulation |
|
# \\/ M anipulation |
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
@ -24,22 +24,21 @@
|
|||||||
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
#
|
#
|
||||||
# Script
|
# Script
|
||||||
# wmakeDerivedFiles
|
# makeDerivedFiles
|
||||||
#
|
#
|
||||||
# Description
|
# Description
|
||||||
# Constructs all the file list for make given the source file list
|
# Constructs all the file list for make given the source file list,
|
||||||
# (which written by hand or using makeFilesAndDirectories.)
|
# written was by hand or using makeFilesAndOptions.
|
||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
if [ ! -d "$WM_OPTIONS" ]
|
[ -d "$WM_OPTIONS" ] || {
|
||||||
then
|
echo "The '$WM_OPTIONS' directory does not exist, exiting" 1>&2
|
||||||
echo "The $WM_OPTIONS directory does not exist, exiting" 1>&2
|
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
}
|
||||||
|
|
||||||
# change to the $WM_OPTIONS directory
|
# change to the $WM_OPTIONS directory
|
||||||
cd $WM_OPTIONS 2>/dev/null || {
|
cd "$WM_OPTIONS" 2>/dev/null || {
|
||||||
echo "Could not change to directory '$WM_OPTIONS'" 1>&2
|
echo "Could not change to directory '$WM_OPTIONS'" 1>&2
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
@ -50,15 +49,15 @@ grep "=" files > filesMacros
|
|||||||
# Remove all macro definitions from the files list
|
# Remove all macro definitions from the files list
|
||||||
grep -v "=" files > filesPlusBlank
|
grep -v "=" files > filesPlusBlank
|
||||||
|
|
||||||
# Add a newline to files to make sure the last line is followed by a newline
|
# Add a newline to files to ensure the last line is followed by a newline
|
||||||
echo "" >> filesPlusBlank
|
echo "" >> filesPlusBlank
|
||||||
|
|
||||||
|
|
||||||
# Remove commented lines blank lines, and trailing blanks from files
|
# Remove commented lines, blank lines, and trailing blanks from files
|
||||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
sed -e '/^#/ d' \
|
sed -e '/^#/ d' \
|
||||||
-e '/^[ \t]*$/ d' \
|
-e '/^[ \t]*$/ d' \
|
||||||
-e 's/[ \t]*$//' \
|
-e 's/[ \t]*$//' \
|
||||||
filesPlusBlank > files.$$
|
filesPlusBlank > files.$$
|
||||||
|
|
||||||
rm filesPlusBlank
|
rm filesPlusBlank
|
||||||
@ -80,7 +79,7 @@ rm tmpSourceFile
|
|||||||
# ~~~~~~~~~~~~~~~~
|
# ~~~~~~~~~~~~~~~~
|
||||||
sed -e 's%.*/%%' \
|
sed -e 's%.*/%%' \
|
||||||
-e 's%^%$(OBJECTS_DIR)/%' \
|
-e 's%^%$(OBJECTS_DIR)/%' \
|
||||||
-e 's%\.[a-zA-Z]*$%\.o%' \
|
-e 's%\.[a-zA-Z]*$%\.o%' \
|
||||||
files.$$ > tmpObjectFiles
|
files.$$ > tmpObjectFiles
|
||||||
|
|
||||||
echo "OBJECTS = " > tmpObjectFiles2
|
echo "OBJECTS = " > tmpObjectFiles2
|
||||||
@ -96,7 +95,7 @@ rm tmpObjectFiles tmpObjectFiles2
|
|||||||
# make localObjectFiles
|
# make localObjectFiles
|
||||||
# ~~~~~~~~~~~~~~~~~~~~~
|
# ~~~~~~~~~~~~~~~~~~~~~
|
||||||
sed -e 's%.*/%%' \
|
sed -e 's%.*/%%' \
|
||||||
-e 's%\.[a-zA-Z]*$%\.o%' \
|
-e 's%\.[a-zA-Z]*$%\.o%' \
|
||||||
files.$$ > tmpLocalObjectFiles
|
files.$$ > tmpLocalObjectFiles
|
||||||
|
|
||||||
echo "LOCAL_OBJECTS = " > tmpLocalObjectFiles2
|
echo "LOCAL_OBJECTS = " > tmpLocalObjectFiles2
|
||||||
@ -132,6 +131,4 @@ sed -e 's/\.[a-zA-Z]*$/.dep/' \
|
|||||||
|
|
||||||
rm files.$$
|
rm files.$$
|
||||||
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
@ -3,7 +3,7 @@
|
|||||||
# ========= |
|
# ========= |
|
||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
# \\ / O peration |
|
# \\ / O peration |
|
||||||
# \\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd.
|
# \\ / A nd | Copyright (C) 1991-2010 OpenCFD Ltd.
|
||||||
# \\/ M anipulation |
|
# \\/ M anipulation |
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
@ -24,28 +24,18 @@
|
|||||||
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
#
|
#
|
||||||
# Script
|
# Script
|
||||||
# wmkdir
|
# makeDir
|
||||||
#
|
#
|
||||||
# Description
|
# Description
|
||||||
# Script to make directories that do not already exist
|
# Script to make directories that do not already exist
|
||||||
# Usage : wmkdir <dir> [.. <dirN>]
|
# Usage : makeDir <dir> [.. <dirN>]
|
||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
if [ $# -ge 1 ]
|
for dir
|
||||||
then
|
do
|
||||||
# provide help
|
[ -d "$dir" ] || mkdir -p "$dir"
|
||||||
if [ "$1" = "-h" -o "$1" = "-help" ]
|
done
|
||||||
then
|
|
||||||
echo "usage: ${0##*/} <dir> [.. <dirN>]"
|
|
||||||
echo " mkdir if directories do not already exist"
|
|
||||||
echo
|
|
||||||
else
|
|
||||||
for dir
|
|
||||||
do
|
|
||||||
[ -d "$dir" ] || mkdir -p "$dir"
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
@ -3,7 +3,7 @@
|
|||||||
# ========= |
|
# ========= |
|
||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
# \\ / O peration |
|
# \\ / O peration |
|
||||||
# \\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd.
|
# \\ / A nd | Copyright (C) 1991-2010 OpenCFD Ltd.
|
||||||
# \\/ M anipulation |
|
# \\/ M anipulation |
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
# ========= |
|
# ========= |
|
||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
# \\ / O peration |
|
# \\ / O peration |
|
||||||
# \\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd.
|
# \\ / A nd | Copyright (C) 1991-2010 OpenCFD Ltd.
|
||||||
# \\/ M anipulation |
|
# \\/ M anipulation |
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
# ========= |
|
# ========= |
|
||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
# \\ / O peration |
|
# \\ / O peration |
|
||||||
# \\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd.
|
# \\ / A nd | Copyright (C) 1991-2010 OpenCFD Ltd.
|
||||||
# \\/ M anipulation |
|
# \\/ M anipulation |
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
@ -24,21 +24,19 @@
|
|||||||
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
#
|
#
|
||||||
# Script
|
# Script
|
||||||
# mkObjectDir
|
# makeTargetDir
|
||||||
#
|
#
|
||||||
# Description
|
# Description
|
||||||
# Makes a directory hierarchy for the given object file
|
# Makes a directory hierarchy for the given target file
|
||||||
#
|
#
|
||||||
# Usage: mkObjectDir <directory>
|
# Usage: makeTargetDir <directory>
|
||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
if [ $# -eq 1 ]
|
for target
|
||||||
then
|
do
|
||||||
if [ ! -d ${1%/*} -a $1 != ${1%/*} ]
|
dir=${target%/*}
|
||||||
then
|
[ -d "$dir" ] || [ "$dir" = "$target" ] || mkdir -p "$dir"
|
||||||
mkdir -p ${1%/*}
|
done
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd.
|
\\ / A nd | Copyright (C) 1991-2010 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
# ========= |
|
# ========= |
|
||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
# \\ / O peration |
|
# \\ / O peration |
|
||||||
# \\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd.
|
# \\ / A nd | Copyright (C) 1991-2010 OpenCFD Ltd.
|
||||||
# \\/ M anipulation |
|
# \\/ M anipulation |
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
# ========= |
|
# ========= |
|
||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
# \\ / O peration |
|
# \\ / O peration |
|
||||||
# \\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd.
|
# \\ / A nd | Copyright (C) 1991-2010 OpenCFD Ltd.
|
||||||
# \\/ M anipulation |
|
# \\/ M anipulation |
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
# ========= |
|
# ========= |
|
||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
# \\ / O peration |
|
# \\ / O peration |
|
||||||
# \\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd.
|
# \\ / A nd | Copyright (C) 1991-2010 OpenCFD Ltd.
|
||||||
# \\/ M anipulation |
|
# \\/ M anipulation |
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
# ========= |
|
# ========= |
|
||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
# \\ / O peration |
|
# \\ / O peration |
|
||||||
# \\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd.
|
# \\ / A nd | Copyright (C) 1991-2010 OpenCFD Ltd.
|
||||||
# \\/ M anipulation |
|
# \\/ M anipulation |
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
# ========= |
|
# ========= |
|
||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
# \\ / O peration |
|
# \\ / O peration |
|
||||||
# \\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd.
|
# \\ / A nd | Copyright (C) 1991-2010 OpenCFD Ltd.
|
||||||
# \\/ M anipulation |
|
# \\/ M anipulation |
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
# ========= |
|
# ========= |
|
||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
# \\ / O peration |
|
# \\ / O peration |
|
||||||
# \\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd.
|
# \\ / A nd | Copyright (C) 1991-2010 OpenCFD Ltd.
|
||||||
# \\/ M anipulation |
|
# \\/ M anipulation |
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
# ========= |
|
# ========= |
|
||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
# \\ / O peration |
|
# \\ / O peration |
|
||||||
# \\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd.
|
# \\ / A nd | Copyright (C) 1991-2010 OpenCFD Ltd.
|
||||||
# \\/ M anipulation |
|
# \\/ M anipulation |
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
|
|||||||
Reference in New Issue
Block a user