diff --git a/Allclean b/Allclean
index 383496e..a185740 100755
--- a/Allclean
+++ b/Allclean
@@ -3,10 +3,11 @@
# ========= |
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / O peration |
-# \\ / A nd | Copyright (C) 2016-2017 OpenCFD Ltd.
+# \\ / A nd | www.openfoam.com
# \\/ M anipulation |
#------------------------------------------------------------------------------
-# | Copyright (C) 2011 OpenFOAM Foundation
+# Copyright (C) 2011 OpenFOAM Foundation
+# Copyright (C) 2016-2019 OpenCFD Ltd.
#------------------------------------------------------------------------------
# License
# This file is part of OpenFOAM, licensed under GNU General Public License
@@ -22,7 +23,8 @@
# NO USER-CONFIGURABLE SETTINGS WITHIN THIS FILE
#------------------------------------------------------------------------------
# Run from third-party directory only
-cd ${0%/*} && wmakeCheckPwd "$WM_THIRD_PARTY_DIR" 2>/dev/null || {
+cd "${0%/*}" || exit
+wmakeCheckPwd "$WM_THIRD_PARTY_DIR" 2>/dev/null || {
echo "Error (${0##*/}) : not located in \$WM_THIRD_PARTY_DIR"
echo " Check your OpenFOAM environment and installation"
exit 1
@@ -61,39 +63,48 @@ for i in \
gmp-* mpfr-* mpc-* gcc-* llvm-* \
;
do
- [ -d "$i" ] && (
+ if [ -d "$i" ]
+ then
+ (
echo
echo "${i%/*}"
echo " make distclean"
echo
cd $i && make distclean
)
+ fi
done
# Clean various packages via 'realclean'
for i in scotch*/src
do
- [ -d "$i" ] && (
+ if [ -d "$i" ]
+ then
+ (
echo
echo "${i%/*}"
echo " make realclean"
echo
cd $i && make realclean
)
+ fi
done
# Clean various packages via 'wclean'
for i in libccmio*/Make kahip*/lib/Make
do
- [ -d "$i" ] && (
+ if [ -d "$i" ]
+ then
+ (
echo
echo "${i%/Make}"
echo " wclean"
echo
cd ${i%/Make} && wclean
)
+ fi
done
@@ -117,7 +128,7 @@ removePlatform()
then
echo
echo "Cleaning platform '$platform'"
- \rm -rf "platforms/$platform"
+ rm -rf "platforms/$platform"
else
echo
echo "Platform '$platform' not built"
@@ -138,7 +149,7 @@ do
echo
echo "Removing all platforms/sub-directories"
echo
- \rm -rf platforms/*
+ rm -rf platforms/*
break
;;
diff --git a/Allwmake b/Allwmake
index a47bd36..06b82fe 100755
--- a/Allwmake
+++ b/Allwmake
@@ -3,10 +3,11 @@
# ========= |
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / O peration |
-# \\ / A nd | Copyright (C) 2016-2019 OpenCFD Ltd.
+# \\ / A nd | www.openfoam.com
# \\/ M anipulation |
#------------------------------------------------------------------------------
-# | Copyright (C) 2011-2016 OpenFOAM Foundation
+# Copyright (C) 2011-2016 OpenFOAM Foundation
+# Copyright (C) 2016-2019 OpenCFD Ltd.
#------------------------------------------------------------------------------
# License
# This file is part of OpenFOAM, licensed under GNU General Public License
@@ -22,7 +23,8 @@
# NO USER-CONFIGURABLE SETTINGS WITHIN THIS FILE
#------------------------------------------------------------------------------
# Run from third-party directory only
-cd ${0%/*} && wmakeCheckPwd "$WM_THIRD_PARTY_DIR" 2>/dev/null || {
+cd "${0%/*}" || exit
+wmakeCheckPwd "$WM_THIRD_PARTY_DIR" 2>/dev/null || {
echo "Error (${0##*/}) : not located in \$WM_THIRD_PARTY_DIR"
echo " Check your OpenFOAM environment and installation"
exit 1
diff --git a/etc/pkgconfigAdjust b/etc/pkgconfigAdjust
index b8f47fd..ae96c0e 100755
--- a/etc/pkgconfigAdjust
+++ b/etc/pkgconfigAdjust
@@ -3,9 +3,11 @@
# ========= |
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / O peration |
-# \\ / A nd | Copyright (C) 2017 OpenCFD Ltd.
+# \\ / A nd | www.openfoam.com
# \\/ M anipulation |
#------------------------------------------------------------------------------
+# Copyright (C) 2017-2019 OpenCFD Ltd.
+#------------------------------------------------------------------------------
# License
# This file is part of OpenFOAM, licensed under GNU General Public License
# .
@@ -33,7 +35,8 @@
# ----------------------------------------------
# NO USER-CONFIGURABLE SETTINGS WITHIN THIS FILE
#------------------------------------------------------------------------------
-# Run from third-party (parent) directory only
+# Run from third-party directory only
+cd "${0%/*}" || exit
wmakeCheckPwd "$WM_THIRD_PARTY_DIR" 2>/dev/null || {
echo "Error (${0##*/}) : current directory is not \$WM_THIRD_PARTY_DIR"
echo " Check your OpenFOAM environment and installation"
diff --git a/etc/pkgconfigPrefix b/etc/pkgconfigPrefix
index 17c1f61..b095427 100755
--- a/etc/pkgconfigPrefix
+++ b/etc/pkgconfigPrefix
@@ -3,9 +3,11 @@
# ========= |
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / O peration |
-# \\ / A nd | Copyright (C) 2017 OpenCFD Ltd.
+# \\ / A nd | www.openfoam.com
# \\/ M anipulation |
#------------------------------------------------------------------------------
+# Copyright (C) 2017-2019 OpenCFD Ltd.
+#------------------------------------------------------------------------------
# License
# This file is part of OpenFOAM, licensed under GNU General Public License
# .
@@ -31,7 +33,8 @@
# ----------------------------------------------
# NO USER-CONFIGURABLE SETTINGS WITHIN THIS FILE
#------------------------------------------------------------------------------
-# Run from third-party (parent) directory only
+# Run from third-party directory only
+cd "${0%/*}" || exit
wmakeCheckPwd "$WM_THIRD_PARTY_DIR" 2>/dev/null || {
echo "Error (${0##*/}) : current directory is not \$WM_THIRD_PARTY_DIR"
echo " Check your OpenFOAM environment and installation"
diff --git a/etc/relocateQt b/etc/relocateQt
index 909e0d1..50786b1 100755
--- a/etc/relocateQt
+++ b/etc/relocateQt
@@ -3,10 +3,11 @@
# ========= |
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / O peration |
-# \\ / A nd | Copyright (C) 2016-2017 OpenCFD Ltd.
+# \\ / A nd | www.openfoam.com
# \\/ M anipulation |
#------------------------------------------------------------------------------
-# | Copyright (C) 2011 OpenFOAM Foundation
+# Copyright (C) 2011 OpenFOAM Foundation
+# Copyright (C) 2016-2017 OpenCFD Ltd.
#------------------------------------------------------------------------------
# License
# This file is part of OpenFOAM, licensed under GNU General Public License
@@ -21,7 +22,8 @@
# ----------------------------------------------
# NO USER-CONFIGURABLE SETTINGS WITHIN THIS FILE
#------------------------------------------------------------------------------
-# Run from third-party (parent) directory only
+# Run from third-party directory only
+cd "${0%/*}" || exit
wmakeCheckPwd "$WM_THIRD_PARTY_DIR" 2>/dev/null || {
echo "Error (${0##*/}) : current directory is not \$WM_THIRD_PARTY_DIR"
echo " Check your OpenFOAM environment and installation"
diff --git a/etc/tools/ParaViewFunctions b/etc/tools/ParaViewFunctions
index 077bf84..f955b41 100644
--- a/etc/tools/ParaViewFunctions
+++ b/etc/tools/ParaViewFunctions
@@ -2,10 +2,11 @@
# ========= |
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / O peration |
-# \\ / A nd | Copyright (C) 2016-2019 OpenCFD Ltd.
+# \\ / A nd | www.openfoam.com
# \\/ M anipulation |
#------------------------------------------------------------------------------
-# | Copyright (C) 2011-2016 OpenFOAM Foundation
+# Copyright (C) 2011-2016 OpenFOAM Foundation
+# Copyright (C) 2016-2019 OpenCFD Ltd.
#------------------------------------------------------------------------------
# License
# This file is part of OpenFOAM, licensed under GNU General Public License
@@ -85,7 +86,7 @@ setParaViewDirs()
echo "ParaView_BUILD_DIR=$ParaView_BUILD_DIR"
echo "ParaView_DIR=$ParaView_DIR"
- export GIT_DIR=$ParaView_SOURCE_DIR/.git # Mask seeing our own git-repo
+ export GIT_DIR="$ParaView_SOURCE_DIR/.git" # Mask seeing our own git-repo
}
@@ -396,7 +397,7 @@ configParaView()
addCMakeVariable "CMAKE_BUILD_TYPE=$BUILD_TYPE"
- cd $ParaView_BUILD_DIR || exit 1 # Change to build folder
+ cd "$ParaView_BUILD_DIR" || exit # Change to build folder
echo "----"
echo "Configuring paraview-$ParaView_VERSION (major version: $ParaView_MAJOR)"
@@ -434,7 +435,7 @@ configParaView()
#
makeParaView()
{
- cd $ParaView_BUILD_DIR || exit 1 # Change to build folder
+ cd "$ParaView_BUILD_DIR" || exit # Change to build folder
echo " Starting make"
time make -j $WM_NCOMPPROCS
echo " Done make"
@@ -453,7 +454,7 @@ makeParaView()
#
installParaView()
{
- cd $ParaView_BUILD_DIR || exit 1 # Change to build folder
+ cd "$ParaView_BUILD_DIR" || exit # Change to build folder
echo " Installing ParaView to $ParaView_DIR"
make install
diff --git a/etc/tools/ThirdPartyFunctions b/etc/tools/ThirdPartyFunctions
index 4614fe1..79eec7b 100644
--- a/etc/tools/ThirdPartyFunctions
+++ b/etc/tools/ThirdPartyFunctions
@@ -2,10 +2,11 @@
# ========= |
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / O peration |
-# \\ / A nd | Copyright (C) 2016-2019 OpenCFD Ltd.
+# \\ / A nd | www.openfoam.com
# \\/ M anipulation |
#------------------------------------------------------------------------------
-# | Copyright (C) 2011-2016 OpenFOAM Foundation
+# Copyright (C) 2011-2016 OpenFOAM Foundation
+# Copyright (C) 2016-2019 OpenCFD Ltd.
#------------------------------------------------------------------------------
# License
# This file is part of OpenFOAM, licensed under GNU General Public License
@@ -738,7 +739,7 @@ applyPatch()
if [ -r "$patch" ]
then
(
- cd $dst || exit 1
+ cd "$dst" || exit
if [ -f "$sentinel" ]
then
echo "patch for $pkg was already applied"
diff --git a/etc/tools/vtkFunctions b/etc/tools/vtkFunctions
index 54c3805..05a5ae9 100644
--- a/etc/tools/vtkFunctions
+++ b/etc/tools/vtkFunctions
@@ -2,9 +2,11 @@
# ========= |
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / O peration |
-# \\ / A nd | Copyright (C) 2016-2018 OpenCFD Ltd.
+# \\ / A nd | www.openfoam.com
# \\/ M anipulation |
#------------------------------------------------------------------------------
+# Copyright (C) 2016-2018 OpenCFD Ltd.
+#------------------------------------------------------------------------------
# License
# This file is part of OpenFOAM, licensed under GNU General Public License
# .
@@ -65,7 +67,7 @@ setVtkDirs()
echo "VTK_BUILD_DIR=$VTK_BUILD_DIR"
echo "VTK_DIR=$VTK_DIR"
- export GIT_DIR=$VTK_SOURCE_DIR/.git # Mask seeing our own git-repo
+ export GIT_DIR="$VTK_SOURCE_DIR/.git" # Mask seeing our own git-repo
}
@@ -120,7 +122,7 @@ configVTK()
addCMakeVariable "CMAKE_BUILD_TYPE=$BUILD_TYPE"
- cd $VTK_BUILD_DIR || exit 1 # change to build folder
+ cd "$VTK_BUILD_DIR" || exit # change to build folder
echo "----"
echo "Configuring VTK-$VTK_VERSION"
@@ -176,7 +178,7 @@ addMpiSupport()
#
makeVTK()
{
- cd $VTK_BUILD_DIR || exit 1 # Change to build folder
+ cd "$VTK_BUILD_DIR" || exit # Change to build folder
echo " Starting make"
time make -j $WM_NCOMPPROCS
@@ -193,7 +195,7 @@ makeVTK()
#
installVTK()
{
- cd $VTK_BUILD_DIR || exit 1 # Change to build folder
+ cd "$VTK_BUILD_DIR" || exit # Change to build folder
echo " Installing VTK to $VTK_DIR"
make install
diff --git a/makeAdios1 b/makeAdios1
index 8218610..5fd1113 100755
--- a/makeAdios1
+++ b/makeAdios1
@@ -3,9 +3,11 @@
# ========= |
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / O peration |
-# \\ / A nd | Copyright (C) 2016-2019 OpenCFD Ltd.
+# \\ / A nd | www.openfoam.com
# \\/ M anipulation |
#------------------------------------------------------------------------------
+# Copyright (C) 2016-2019 OpenCFD Ltd.
+#------------------------------------------------------------------------------
# License
# This file is part of OpenFOAM, licensed under GNU General Public License
# .
@@ -20,7 +22,8 @@
# NO USER-CONFIGURABLE SETTINGS WITHIN THIS FILE
#------------------------------------------------------------------------------
# Run from third-party directory only
-cd ${0%/*} && wmakeCheckPwd "$WM_THIRD_PARTY_DIR" 2>/dev/null || {
+cd "${0%/*}" || exit
+wmakeCheckPwd "$WM_THIRD_PARTY_DIR" 2>/dev/null || {
echo "Error (${0##*/}) : not located in \$WM_THIRD_PARTY_DIR"
echo " Check your OpenFOAM environment and installation"
exit 1
@@ -119,7 +122,7 @@ adjustADIOS()
{
# Rename libraries according to FOAM_MPI
(
- cd $ADIOS1_ARCH_PATH/lib$WM_COMPILER_LIB_ARCH || exit 1
+ cd "$ADIOS1_ARCH_PATH/lib$WM_COMPILER_LIB_ARCH" || exit
if [ "$FOAM_MPI" != dummy ]
then
@@ -272,8 +275,8 @@ then
# ----------------------------
buildDIR=$buildBASE/$adiosPACKAGE
- cd $ADIOS1_SOURCE_DIR || exit 1
- export GIT_DIR=$PWD/.git # Mask seeing our own git-repo
+ cd "$ADIOS1_SOURCE_DIR" || exit
+ export GIT_DIR="$PWD/.git" # Mask seeing our own git-repo
[ -e Makefile ] && make distclean 2>/dev/null
@@ -320,8 +323,8 @@ else
echo
(
buildDIR=$buildBASE/$adiosPACKAGE
- cd $ADIOS1_SOURCE_DIR || exit 1
- export GIT_DIR=$PWD/.git # Mask seeing our own git-repo
+ cd "$ADIOS1_SOURCE_DIR" || exit
+ export GIT_DIR="$PWD/.git" # Mask seeing our own git-repo
applyPatch $adiosPACKAGE $ADIOS1_SOURCE_DIR
@@ -355,6 +358,7 @@ else
&& listMethods
) || {
echo "Error building: $adiosPACKAGE"
+ exit 1
}
fi
diff --git a/makeAdios2 b/makeAdios2
index 1572d28..7bb6e1f 100755
--- a/makeAdios2
+++ b/makeAdios2
@@ -1,13 +1,15 @@
#!/bin/sh
#------------------------------------------------------------------------------
-# ========= |
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / O peration |
-# \\ / A nd | Copyright (C) 2018-2019 OpenCFD Ltd.
+# \\ / A nd | www.openfoam.com
# \\/ M anipulation |
#------------------------------------------------------------------------------
-# This file is part of OpenFOAM, licensed under the GNU General Public License
-# .
+# Copyright (C) 2018-2019 OpenCFD Ltd.
+#------------------------------------------------------------------------------
+# License
+# This file is part of OpenFOAM, licensed under GNU General Public License
+# .
#
# Script
# makeAdios2
@@ -37,7 +39,8 @@ then
fi
#------------------------------------------------------------------------------
# Run from third-party directory only
-cd ${0%/*} && wmakeCheckPwd "$WM_THIRD_PARTY_DIR" 2>/dev/null || {
+cd "${0%/*}" || exit
+wmakeCheckPwd "$WM_THIRD_PARTY_DIR" 2>/dev/null || {
echo "Error (${0##*/}) : not located in \$WM_THIRD_PARTY_DIR"
echo " Check your OpenFOAM environment and installation"
exit 1
@@ -138,8 +141,8 @@ else
echo
(
buildDIR=$buildBASE/$adiosPACKAGE
- cd $ADIOS2_SOURCE_DIR || exit 1
- export GIT_DIR=$PWD/.git # Mask seeing our own git-repo
+ cd "$ADIOS2_SOURCE_DIR" || exit
+ export GIT_DIR="$PWD/.git" # Mask seeing our own git-repo
applyPatch $adiosPACKAGE $ADIOS2_SOURCE_DIR
diff --git a/makeCCMIO b/makeCCMIO
index 1ae7b33..31c010c 100755
--- a/makeCCMIO
+++ b/makeCCMIO
@@ -3,10 +3,11 @@
# ========= |
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / O peration |
-# \\ / A nd | Copyright (C) 2016-2019 OpenCFD Ltd.
+# \\ / A nd | www.openfoam.com
# \\/ M anipulation |
#------------------------------------------------------------------------------
-# | Copyright (C) 2011-2016 OpenFOAM Foundation
+# Copyright (C) 2011-2016 OpenFOAM Foundation
+# Copyright (C) 2016-2019 OpenCFD Ltd.
#------------------------------------------------------------------------------
# License
# This file is part of OpenFOAM, licensed under GNU General Public License
@@ -25,7 +26,8 @@
[ "$(uname -s)" = Darwin ] && EXT_SO=.dylib || EXT_SO=.so
# Run from third-party directory only
-cd ${0%/*} && wmakeCheckPwd "$WM_THIRD_PARTY_DIR" 2>/dev/null || {
+cd "${0%/*}" || exit
+wmakeCheckPwd "$WM_THIRD_PARTY_DIR" 2>/dev/null || {
echo "Error (${0##*/}) : not located in \$WM_THIRD_PARTY_DIR"
echo " Check your OpenFOAM environment and installation"
exit 1
@@ -125,8 +127,8 @@ install()
echo "Starting build: $ccmioPACKAGE ($targetType)"
echo
(
- cd $CCMIO_SOURCE_DIR || exit 1
- export GIT_DIR=$PWD/.git # Mask seeing our own git-repo
+ cd "$CCMIO_SOURCE_DIR" || exit
+ export GIT_DIR="$PWD/.git" # Mask seeing our own git-repo
rm -rf $CCMIO_ARCH_PATH
rm -f $FOAM_EXT_LIBBIN/libccmio$EXT_SO
diff --git a/makeCGAL b/makeCGAL
index 12069da..41c8485 100755
--- a/makeCGAL
+++ b/makeCGAL
@@ -3,10 +3,11 @@
# ========= |
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / O peration |
-# \\ / A nd | Copyright (C) 2016-2019 OpenCFD Ltd.
+# \\ / A nd | www.openfoam.com
# \\/ M anipulation |
#------------------------------------------------------------------------------
-# | Copyright (C) 2012-2016 OpenFOAM Foundation
+# Copyright (C) 2012-2016 OpenFOAM Foundation
+# Copyright (C) 2016-2019 OpenCFD Ltd.
#------------------------------------------------------------------------------
# License
# This file is part of OpenFOAM, licensed under GNU General Public License
@@ -58,7 +59,8 @@ then
fi
#------------------------------------------------------------------------------
# Run from third-party directory only
-cd ${0%/*} && wmakeCheckPwd "$WM_THIRD_PARTY_DIR" 2>/dev/null || {
+cd "${0%/*}" || exit
+wmakeCheckPwd "$WM_THIRD_PARTY_DIR" 2>/dev/null || {
echo "Error (${0##*/}) : not located in \$WM_THIRD_PARTY_DIR"
echo " Check your OpenFOAM environment and installation"
exit 1
@@ -236,8 +238,8 @@ else
# Configuration options:
unset buildOpt
- cd $BOOST_SOURCE_DIR || exit 1
- export GIT_DIR=$PWD/.git # Mask seeing our own git-repo
+ cd "$BOOST_SOURCE_DIR" || exit
+ export GIT_DIR="$PWD/.git" # Mask seeing our own git-repo
rm -rf $BOOST_ARCH_PATH
@@ -462,8 +464,8 @@ fi
fi
mkdir -p $CGAL_BUILD_DIR
- cd $CGAL_BUILD_DIR || exit 1
- export GIT_DIR=$CGAL_SOURCE_DIR/.git # Mask seeing our own git-repo
+ cd "$CGAL_BUILD_DIR" || exit
+ export GIT_DIR="$CGAL_SOURCE_DIR/.git" # Mask seeing our own git-repo
unset configBoost configGmp configMpfr
echo "----"
diff --git a/makeCmake b/makeCmake
index 7b2197b..8a8cced 100755
--- a/makeCmake
+++ b/makeCmake
@@ -3,10 +3,11 @@
# ========= |
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / O peration |
-# \\ / A nd | Copyright (C) 2016-2019 OpenCFD Ltd.
+# \\ / A nd | www.openfoam.com
# \\/ M anipulation |
#------------------------------------------------------------------------------
-# | Copyright (C) 2011 OpenFOAM Foundation
+# Copyright (C) 2011 OpenFOAM Foundation
+# Copyright (C) 2016-2019 OpenCFD Ltd.
#------------------------------------------------------------------------------
# License
# This file is part of OpenFOAM, licensed under GNU General Public License
@@ -25,7 +26,8 @@
# NO USER-CONFIGURABLE SETTINGS WITHIN THIS FILE
#------------------------------------------------------------------------------
# Run from third-party directory only
-cd ${0%/*} && wmakeCheckPwd "$WM_THIRD_PARTY_DIR" 2>/dev/null || {
+cd "${0%/*}" || exit
+wmakeCheckPwd "$WM_THIRD_PARTY_DIR" 2>/dev/null || {
echo "Error (${0##*/}) : not located in \$WM_THIRD_PARTY_DIR"
echo " Check your OpenFOAM environment and installation"
exit 1
@@ -103,8 +105,8 @@ else
(
buildDIR=$buildBASE/$cmakePACKAGE
- cd $CMAKE_SOURCE_DIR || exit 1
- export GIT_DIR=$PWD/.git # Mask seeing our own git-repo
+ cd "$CMAKE_SOURCE_DIR" || exit
+ export GIT_DIR="$PWD/.git" # Mask seeing our own git-repo
make distclean 2>/dev/null
rm -rf $buildDIR
@@ -125,7 +127,7 @@ fi
if [ "$optLink" = true -a -x "$CMAKE_ARCH_PATH/bin/cmake" ]
then
(
- cd ${CMAKE_ARCH_PATH%/*} || exit 1
+ cd "${CMAKE_ARCH_PATH%/*}" || exit
if [ -L cmake-system ]
then
rm cmake-system
diff --git a/makeFFTW b/makeFFTW
index eb092b7..54adde9 100755
--- a/makeFFTW
+++ b/makeFFTW
@@ -3,9 +3,11 @@
# ========= |
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / O peration |
-# \\ / A nd | Copyright (C) 2016-2019 OpenCFD Ltd.
+# \\ / A nd | www.openfoam.com
# \\/ M anipulation |
#------------------------------------------------------------------------------
+# Copyright (C) 2016-2019 OpenCFD Ltd.
+#------------------------------------------------------------------------------
# License
# This file is part of OpenFOAM, licensed under GNU General Public License
# .
@@ -38,7 +40,8 @@ then
fi
#------------------------------------------------------------------------------
# Run from third-party directory only
-cd ${0%/*} && wmakeCheckPwd "$WM_THIRD_PARTY_DIR" 2>/dev/null || {
+cd "${0%/*}" || exit
+wmakeCheckPwd "$WM_THIRD_PARTY_DIR" 2>/dev/null || {
echo "Error (${0##*/}) : not located in \$WM_THIRD_PARTY_DIR"
echo " Check your OpenFOAM environment and installation"
exit 1
@@ -140,8 +143,8 @@ else
# ----------------------------
buildDIR=$buildBASE/$fftwPACKAGE
- cd $FFTW_SOURCE_DIR || exit 1
- export GIT_DIR=$PWD/.git # Mask seeing our own git-repo
+ cd "$FFTW_SOURCE_DIR" || exit
+ export GIT_DIR="$PWD/.git" # Mask seeing our own git-repo
rm -rf $FFTW_ARCH_PATH
rm -rf $buildDIR
diff --git a/makeGcc b/makeGcc
index f78fd12..ab2271e 100755
--- a/makeGcc
+++ b/makeGcc
@@ -3,10 +3,11 @@
# ========= |
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / O peration |
-# \\ / A nd | Copyright (C) 2016-2019 OpenCFD Ltd.
+# \\ / A nd | www.openfoam.com
# \\/ M anipulation |
#------------------------------------------------------------------------------
-# | Copyright (C) 2011-2016 OpenFOAM Foundation
+# Copyright (C) 2011-2016 OpenFOAM Foundation
+# Copyright (C) 2016-2019 OpenCFD Ltd.
#------------------------------------------------------------------------------
# License
# This file is part of OpenFOAM, licensed under GNU General Public License
@@ -34,7 +35,8 @@
# NO USER-CONFIGURABLE SETTINGS WITHIN THIS FILE
#------------------------------------------------------------------------------
# Run from third-party directory only
-cd ${0%/*} && wmakeCheckPwd "$WM_THIRD_PARTY_DIR" 2>/dev/null || {
+cd "${0%/*}" || exit
+wmakeCheckPwd "$WM_THIRD_PARTY_DIR" 2>/dev/null || {
echo "Error (${0##*/}) : not located in \$WM_THIRD_PARTY_DIR"
echo " Check your OpenFOAM environment and installation"
exit 1
@@ -191,8 +193,8 @@ else
sourceDIR=$sourceBASE/$gmpPACKAGE
buildDIR=$buildBASE/$gmpPACKAGE
- cd $sourceDIR || exit 1
- export GIT_DIR=$PWD/.git # Mask seeing our own git-repo
+ cd "$sourceDIR" || exit
+ export GIT_DIR="$PWD/.git" # Mask seeing our own git-repo
make distclean 2>/dev/null
rm -rf $buildDIR
@@ -243,8 +245,8 @@ else
sourceDIR=$sourceBASE/$mpfrPACKAGE
buildDIR=$buildBASE/$mpfrPACKAGE
- cd $sourceDIR || exit 1
- export GIT_DIR=$PWD/.git # Mask seeing our own git-repo
+ cd "$sourceDIR" || exit
+ export GIT_DIR="$PWD/.git" # Mask seeing our own git-repo
make distclean 2>/dev/null
rm -rf $buildDIR
@@ -299,8 +301,8 @@ else
sourceDIR=$sourceBASE/$mpcPACKAGE
buildDIR=$buildBASE/$mpcPACKAGE
- cd $sourceDIR || exit 1
- export GIT_DIR=$PWD/.git # Mask seeing our own git-repo
+ cd "$sourceDIR" || exit
+ export GIT_DIR="$PWD/.git" # Mask seeing our own git-repo
make distclean 2>/dev/null
rm -rf $buildDIR
@@ -355,8 +357,8 @@ else
sourceDIR=$sourceBASE/$gccPACKAGE
buildDIR=$buildBASE/$gccPACKAGE
- cd $sourceDIR || exit 1
- export GIT_DIR=$PWD/.git # Mask seeing our own git-repo
+ cd "$sourceDIR" || exit
+ export GIT_DIR="$PWD/.git" # Mask seeing our own git-repo
make distclean 2>/dev/null
rm -rf $buildDIR
diff --git a/makeGperftools b/makeGperftools
index 000aa9d..2461959 100755
--- a/makeGperftools
+++ b/makeGperftools
@@ -3,10 +3,11 @@
# ========= |
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / O peration |
-# \\ / A nd | Copyright (C) 2016-2019 OpenCFD Ltd.
+# \\ / A nd | www.openfoam.com
# \\/ M anipulation |
#------------------------------------------------------------------------------
-# | Copyright (C) 2012 OpenFOAM Foundation
+# Copyright (C) 2012 OpenFOAM Foundation
+# Copyright (C) 2016-2019 OpenCFD Ltd.
#------------------------------------------------------------------------------
# License
# This file is part of OpenFOAM, licensed under GNU General Public License
@@ -22,7 +23,8 @@
# NO USER-CONFIGURABLE SETTINGS WITHIN THIS FILE
#------------------------------------------------------------------------------
# Run from third-party directory only
-cd ${0%/*} && wmakeCheckPwd "$WM_THIRD_PARTY_DIR" 2>/dev/null || {
+cd "${0%/*}" || exit
+wmakeCheckPwd "$WM_THIRD_PARTY_DIR" 2>/dev/null || {
echo "Error (${0##*/}) : not located in \$WM_THIRD_PARTY_DIR"
echo " Check your OpenFOAM environment and installation"
exit 1
@@ -102,8 +104,8 @@ else
(
buildDIR=$buildBASE/$gperftoolsPACKAGE
- cd $GPERFTOOLS_SOURCE_DIR || exit 1
- export GIT_DIR=$PWD/.git # Mask seeing our own git-repo
+ cd "$GPERFTOOLS_SOURCE_DIR" || exit
+ export GIT_DIR="$PWD/.git" # Mask seeing our own git-repo
[ -e Makefile ] && make distclean 2>/dev/null
rm -rf $GPERFTOOLS_ARCH_PATH
diff --git a/makeHYPRE b/makeHYPRE
index bb52f7d..01d778a 100755
--- a/makeHYPRE
+++ b/makeHYPRE
@@ -3,9 +3,11 @@
# ========= |
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / O peration |
-# \\ / A nd | Copyright (C) 2018-2019 OpenCFD Ltd.
+# \\ / A nd | www.openfoam.com
# \\/ M anipulation |
#------------------------------------------------------------------------------
+# Copyright (C) 2018-2019 OpenCFD Ltd.
+#------------------------------------------------------------------------------
# License
# This file is part of OpenFOAM, licensed under GNU General Public License
# .
@@ -49,7 +51,8 @@ then
fi
#------------------------------------------------------------------------------
# Run from third-party directory only
-cd ${0%/*} && wmakeCheckPwd "$WM_THIRD_PARTY_DIR" 2>/dev/null || {
+cd "${0%/*}" || exit
+wmakeCheckPwd "$WM_THIRD_PARTY_DIR" 2>/dev/null || {
echo "Error (${0##*/}) : not located in \$WM_THIRD_PARTY_DIR"
echo " Check your OpenFOAM environment and installation"
exit 1
@@ -149,8 +152,8 @@ echo
# Configuration options:
unset configOpt
- cd $HYPRE_SOURCE_DIR/src || exit 1
- export GIT_DIR=$PWD/.git # Mask seeing our own git-repo
+ cd "$HYPRE_SOURCE_DIR/src" || exit
+ export GIT_DIR="$PWD/.git" # Mask seeing our own git-repo
rm -rf $HYPRE_ARCH_PATH
[ -e Makefile ] && make distclean 2>/dev/null
diff --git a/makeKAHIP b/makeKAHIP
index ad32a3a..721a9e6 100755
--- a/makeKAHIP
+++ b/makeKAHIP
@@ -3,9 +3,11 @@
# ========= |
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / O peration |
-# \\ / A nd | Copyright (C) 2017-2019 OpenCFD Ltd.
+# \\ / A nd | www.openfoam.com
# \\/ M anipulation |
#------------------------------------------------------------------------------
+# Copyright (C) 2017-2019 OpenCFD Ltd.
+#------------------------------------------------------------------------------
# License
# This file is part of OpenFOAM, licensed under GNU General Public License
# .
@@ -49,7 +51,8 @@ then
fi
#------------------------------------------------------------------------------
# Run from third-party directory only
-cd ${0%/*} && wmakeCheckPwd "$WM_THIRD_PARTY_DIR" 2>/dev/null || {
+cd "${0%/*}" || exit
+wmakeCheckPwd "$WM_THIRD_PARTY_DIR" 2>/dev/null || {
echo "Error (${0##*/}) : not located in \$WM_THIRD_PARTY_DIR"
echo " Check your OpenFOAM environment and installation"
exit 1
@@ -181,11 +184,11 @@ then
echo "Starting build: $kahipPACKAGE ($targetType) using wmake"
echo
- cd $KAHIP_SOURCE_DIR/lib || exit 1
- export GIT_DIR=$KAHIP_SOURCE_DIR/.git # Mask seeing our own git-repo
+ cd "$KAHIP_SOURCE_DIR/lib" || exit
+ export GIT_DIR="$KAHIP_SOURCE_DIR/.git" # Mask seeing our own git-repo
- rm -rf $KAHIP_ARCH_PATH
- rm -f $FOAM_EXT_LIBBIN/libkahip$EXT_SO
+ rm -rf "$KAHIP_ARCH_PATH"
+ rm -f "$FOAM_EXT_LIBBIN/libkahip$EXT_SO"
libdir=$KAHIP_ARCH_PATH/lib$WM_COMPILER_LIB_ARCH
diff --git a/makeLLVM b/makeLLVM
index 8cd98b9..ab5001c 100755
--- a/makeLLVM
+++ b/makeLLVM
@@ -3,10 +3,11 @@
# ========= |
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / O peration |
-# \\ / A nd | Copyright (C) 2016-2019 OpenCFD Ltd.
+# \\ / A nd | www.openfoam.com
# \\/ M anipulation |
#------------------------------------------------------------------------------
-# | Copyright (C) 2011-2016 OpenFOAM Foundation
+# Copyright (C) 2011-2016 OpenFOAM Foundation
+# Copyright (C) 2016-2019 OpenCFD Ltd.
#------------------------------------------------------------------------------
# License
# This file is part of OpenFOAM, licensed under GNU General Public License
@@ -40,7 +41,8 @@
# NO USER-CONFIGURABLE SETTINGS WITHIN THIS FILE
#------------------------------------------------------------------------------
# Run from third-party directory only
-cd ${0%/*} && wmakeCheckPwd "$WM_THIRD_PARTY_DIR" 2>/dev/null || {
+cd "${0%/*}" || exit
+wmakeCheckPwd "$WM_THIRD_PARTY_DIR" 2>/dev/null || {
echo "Error (${0##*/}) : not located in \$WM_THIRD_PARTY_DIR"
echo " Check your OpenFOAM environment and installation"
exit 1
@@ -135,8 +137,8 @@ then
echo "Starting build: $llvmPACKAGE (using configure)"
echo
(
- cd $LLVM_SOURCE_DIR || exit 1
- export GIT_DIR=$PWD/.git # Mask seeing our own git-repo
+ cd "$LLVM_SOURCE_DIR" || exit
+ export GIT_DIR="$PWD/.git" # Mask seeing our own git-repo
make distclean 2>/dev/null
rm -rf $LLVM_BUILD_DIR
@@ -167,8 +169,8 @@ else
# Configuration options:
unset configOpt
- cd $LLVM_SOURCE_DIR || exit 1
- export GIT_DIR=$PWD/.git # Mask seeing our own git-repo
+ cd "$LLVM_SOURCE_DIR" || exit
+ export GIT_DIR="$PWD/.git" # Mask seeing our own git-repo
if [ -f tools/openmp/CMakeLists.txt ]
then
diff --git a/makeMETIS b/makeMETIS
index 80f3f07..70b6561 100755
--- a/makeMETIS
+++ b/makeMETIS
@@ -3,9 +3,11 @@
# ========= |
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / O peration |
-# \\ / A nd | Copyright (C) 2017-2018 OpenCFD Ltd.
+# \\ / A nd | www.openfoam.com
# \\/ M anipulation |
#------------------------------------------------------------------------------
+# Copyright (C) 2017-2018 OpenCFD Ltd.
+#------------------------------------------------------------------------------
# License
# This file is part of OpenFOAM, licensed under GNU General Public License
# .
@@ -49,7 +51,8 @@ then
fi
#------------------------------------------------------------------------------
# Run from third-party directory only
-cd ${0%/*} && wmakeCheckPwd "$WM_THIRD_PARTY_DIR" 2>/dev/null || {
+cd "${0%/*}" || exit
+wmakeCheckPwd "$WM_THIRD_PARTY_DIR" 2>/dev/null || {
echo "Error (${0##*/}) : not located in \$WM_THIRD_PARTY_DIR"
echo " Check your OpenFOAM environment and installation"
exit 1
@@ -165,8 +168,8 @@ echo
configOpt="shared=1"
fi
- cd $METIS_SOURCE_DIR || exit 1
- export GIT_DIR=$PWD/.git # Mask seeing our own git-repo
+ cd "$METIS_SOURCE_DIR" || exit
+ export GIT_DIR="$PWD/.git" # Mask seeing our own git-repo
rm -rf $METIS_ARCH_PATH
rm -f $FOAM_EXT_LIBBIN/libmetis$EXT_SO
diff --git a/makeMGridGen b/makeMGridGen
index af226e9..94dea5a 100755
--- a/makeMGridGen
+++ b/makeMGridGen
@@ -3,9 +3,11 @@
# ========= |
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / O peration |
-# \\ / A nd | Copyright (C) 2017-2019 OpenCFD Ltd.
+# \\ / A nd | www.openfoam.com
# \\/ M anipulation |
#------------------------------------------------------------------------------
+# Copyright (C) 2017-2019 OpenCFD Ltd.
+#------------------------------------------------------------------------------
# License
# This file is part of OpenFOAM, licensed under GNU General Public License
# .
@@ -20,6 +22,7 @@
# NO USER-CONFIGURABLE SETTINGS WITHIN THIS FILE
#------------------------------------------------------------------------------
# Run from ThirdParty directory only
+cd "${0%/*}" || exit
wmakeCheckPwd "$WM_THIRD_PARTY_DIR" || {
echo "Error: Current directory is not \$WM_THIRD_PARTY_DIR"
echo " The environment variables are inconsistent with the installation."
@@ -139,7 +142,7 @@ then
echo
else
(
- cd $MGRIDGEN_SOURCE_DIR || exit 1
+ cd "$MGRIDGEN_SOURCE_DIR" || exit
[ -e Makefile ] && make realclean 2>/dev/null
# Remove any existing build folder and recreate
@@ -164,6 +167,7 @@ else
&& echo "Built: $mgridgenPACKAGE"
) || {
echo "Error building: $mgridgenPACKAGE"
+ exit 1
}
fi
diff --git a/makeMPICH b/makeMPICH
index ade55fe..d971a95 100755
--- a/makeMPICH
+++ b/makeMPICH
@@ -3,9 +3,11 @@
# ========= |
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / O peration |
-# \\ / A nd | Copyright (C) 2017-2019 OpenCFD Ltd.
+# \\ / A nd | www.openfoam.com
# \\/ M anipulation |
#------------------------------------------------------------------------------
+# Copyright (C) 2017-2019 OpenCFD Ltd.
+#------------------------------------------------------------------------------
# License
# This file is part of OpenFOAM, licensed under GNU General Public License
# .
@@ -42,7 +44,8 @@ then
fi
#------------------------------------------------------------------------------
# Run from third-party directory only
-cd ${0%/*} && wmakeCheckPwd "$WM_THIRD_PARTY_DIR" 2>/dev/null || {
+cd "${0%/*}" || exit
+wmakeCheckPwd "$WM_THIRD_PARTY_DIR" 2>/dev/null || {
echo "Error (${0##*/}) : not located in \$WM_THIRD_PARTY_DIR"
echo " Check your OpenFOAM environment and installation"
exit 1
@@ -151,8 +154,8 @@ else
buildDIR=$buildBASE/$mpiPACKAGE
- cd $MPI_SOURCE_DIR || exit 1
- export GIT_DIR=$PWD/.git # Mask seeing our own git-repo
+ cd "$MPI_SOURCE_DIR" || exit
+ export GIT_DIR="$PWD/.git" # Mask seeing our own git-repo
[ -e Makefile ] && make distclean 2>/dev/null
rm -rf $MPI_ARCH_PATH
diff --git a/makeMVAPICH b/makeMVAPICH
index 8cb3e05..612194d 100755
--- a/makeMVAPICH
+++ b/makeMVAPICH
@@ -3,9 +3,11 @@
# ========= |
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / O peration |
-# \\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
+# \\ / A nd | www.openfoam.com
# \\/ M anipulation |
#------------------------------------------------------------------------------
+# Copyright (C) 2019 OpenCFD Ltd.
+#------------------------------------------------------------------------------
# License
# This file is part of OpenFOAM, licensed under GNU General Public License
# .
@@ -42,7 +44,8 @@ then
fi
#------------------------------------------------------------------------------
# Run from third-party directory only
-cd ${0%/*} && wmakeCheckPwd "$WM_THIRD_PARTY_DIR" 2>/dev/null || {
+cd "${0%/*}" || exit
+wmakeCheckPwd "$WM_THIRD_PARTY_DIR" 2>/dev/null || {
echo "Error (${0##*/}) : not located in \$WM_THIRD_PARTY_DIR"
echo " Check your OpenFOAM environment and installation"
exit 1
@@ -155,8 +158,8 @@ else
buildDIR=$buildBASE/$mpiPACKAGE
- cd $MPI_SOURCE_DIR || exit 1
- export GIT_DIR=$PWD/.git # Mask seeing our own git-repo
+ cd "$MPI_SOURCE_DIR" || exit
+ export GIT_DIR="$PWD/.git" # Mask seeing our own git-repo
[ -e Makefile ] && make distclean 2>/dev/null
rm -rf $MPI_ARCH_PATH
diff --git a/makeMesa b/makeMesa
index 36e4f9b..6328206 100755
--- a/makeMesa
+++ b/makeMesa
@@ -3,9 +3,11 @@
# ========= |
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / O peration |
-# \\ / A nd | Copyright (C) 2016-2019 OpenCFD Ltd.
+# \\ / A nd | www.openfoam.com
# \\/ M anipulation |
#------------------------------------------------------------------------------
+# Copyright (C) 2016-2019 OpenCFD Ltd.
+#------------------------------------------------------------------------------
# License
# This file is part of OpenFOAM, licensed under GNU General Public License
# .
@@ -26,7 +28,8 @@
# NO USER-CONFIGURABLE SETTINGS WITHIN THIS FILE
#------------------------------------------------------------------------------
# Run from third-party directory only
-cd ${0%/*} && wmakeCheckPwd "$WM_THIRD_PARTY_DIR" 2>/dev/null || {
+cd "${0%/*}" || exit
+wmakeCheckPwd "$WM_THIRD_PARTY_DIR" 2>/dev/null || {
echo "Error (${0##*/}) : not located in \$WM_THIRD_PARTY_DIR"
echo " Check your OpenFOAM environment and installation"
exit 1
@@ -209,8 +212,8 @@ adjustMESA()
# ----------------------------
buildDIR=$buildBASE/$mesaPACKAGE
- cd $MESA_SOURCE_DIR || exit 1
- export GIT_DIR=$PWD/.git # Mask seeing our own git-repo
+ cd "$MESA_SOURCE_DIR" || exit
+ export GIT_DIR="$PWD/.git" # Mask seeing our own git-repo
# Remove any existing build
rm -rf $MESA_ARCH_PATH
diff --git a/makeOPENMPI b/makeOPENMPI
index 88e5982..60b5731 100755
--- a/makeOPENMPI
+++ b/makeOPENMPI
@@ -3,9 +3,11 @@
# ========= |
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / O peration |
-# \\ / A nd | Copyright (C) 2017-2019 OpenCFD Ltd.
+# \\ / A nd | www.openfoam.com
# \\/ M anipulation |
#------------------------------------------------------------------------------
+# Copyright (C) 2017-2019 OpenCFD Ltd.
+#------------------------------------------------------------------------------
# License
# This file is part of OpenFOAM, licensed under GNU General Public License
# .
@@ -42,7 +44,8 @@ then
fi
#------------------------------------------------------------------------------
# Run from third-party directory only
-cd ${0%/*} && wmakeCheckPwd "$WM_THIRD_PARTY_DIR" 2>/dev/null || {
+cd "${0%/*}" || exit
+wmakeCheckPwd "$WM_THIRD_PARTY_DIR" 2>/dev/null || {
echo "Error (${0##*/}) : not located in \$WM_THIRD_PARTY_DIR"
echo " Check your OpenFOAM environment and installation"
exit 1
@@ -171,8 +174,8 @@ else
buildDIR=$buildBASE/$mpiPACKAGE
- cd $MPI_SOURCE_DIR || exit 1
- export GIT_DIR=$PWD/.git # Mask seeing our own git-repo
+ cd "$MPI_SOURCE_DIR" || exit
+ export GIT_DIR="$PWD/.git" # Mask seeing our own git-repo
[ -e Makefile ] && make distclean 2>/dev/null
rm -rf $MPI_ARCH_PATH
diff --git a/makePETSC b/makePETSC
index 6775fc7..d27cc52 100755
--- a/makePETSC
+++ b/makePETSC
@@ -3,9 +3,11 @@
# ========= |
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / O peration |
-# \\ / A nd | Copyright (C) 2018-2019 OpenCFD Ltd.
+# \\ / A nd | www.openfoam.com
# \\/ M anipulation |
#------------------------------------------------------------------------------
+# Copyright (C) 2018-2019 OpenCFD Ltd.
+#------------------------------------------------------------------------------
# License
# This file is part of OpenFOAM, licensed under GNU General Public License
# .
@@ -49,7 +51,8 @@ then
fi
#------------------------------------------------------------------------------
# Run from third-party directory only
-cd ${0%/*} && wmakeCheckPwd "$WM_THIRD_PARTY_DIR" 2>/dev/null || {
+cd "${0%/*}" || exit
+wmakeCheckPwd "$WM_THIRD_PARTY_DIR" 2>/dev/null || {
echo "Error (${0##*/}) : not located in \$WM_THIRD_PARTY_DIR"
echo " Check your OpenFOAM environment and installation"
exit 1
@@ -167,8 +170,8 @@ echo
configOpt="$configOpt --with-precision=double"
fi
- cd $PETSC_SOURCE_DIR || exit 1
- export GIT_DIR=$PWD/.git # Mask seeing our own git-repo
+ cd "$PETSC_SOURCE_DIR" || exit
+ export GIT_DIR="$PWD/.git" # Mask seeing our own git-repo
rm -rf $PETSC_ARCH_PATH
diff --git a/makeParaView b/makeParaView
index 963f4f1..5180442 100755
--- a/makeParaView
+++ b/makeParaView
@@ -3,10 +3,11 @@
# ========= |
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / O peration |
-# \\ / A nd | Copyright (C) 2016-2019 OpenCFD Ltd.
+# \\ / A nd | www.openfoam.com
# \\/ M anipulation |
#------------------------------------------------------------------------------
-# | Copyright (C) 2011-2016 OpenFOAM Foundation
+# Copyright (C) 2011-2016 OpenFOAM Foundation
+# Copyright (C) 2016-2019 OpenCFD Ltd.
#------------------------------------------------------------------------------
# License
# This file is part of OpenFOAM, licensed under GNU General Public License
@@ -27,7 +28,8 @@
# NO USER-CONFIGURABLE SETTINGS WITHIN THIS FILE
#------------------------------------------------------------------------------
# Run from third-party directory only
-cd ${0%/*} && wmakeCheckPwd "$WM_THIRD_PARTY_DIR" 2>/dev/null || {
+cd "${0%/*}" || exit
+wmakeCheckPwd "$WM_THIRD_PARTY_DIR" 2>/dev/null || {
echo "Error (${0##*/}) : not located in \$WM_THIRD_PARTY_DIR"
echo " Check your OpenFOAM environment and installation"
exit 1
diff --git a/makeQt b/makeQt
index ee219f5..bd87083 100755
--- a/makeQt
+++ b/makeQt
@@ -3,10 +3,11 @@
# ========= |
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / O peration |
-# \\ / A nd | Copyright (C) 2016-2019 OpenCFD Ltd.
+# \\ / A nd | www.openfoam.com
# \\/ M anipulation |
#------------------------------------------------------------------------------
-# | Copyright (C) 2011 OpenFOAM Foundation
+# Copyright (C) 2011 OpenFOAM Foundation
+# Copyright (C) 2016-2019 OpenCFD Ltd.
#------------------------------------------------------------------------------
# License
# This file is part of OpenFOAM, licensed under GNU General Public License
@@ -22,7 +23,8 @@
# NO USER-CONFIGURABLE SETTINGS WITHIN THIS FILE
#------------------------------------------------------------------------------
# Run from third-party directory only
-cd ${0%/*} && wmakeCheckPwd "$WM_THIRD_PARTY_DIR" 2>/dev/null || {
+cd "${0%/*}" || exit
+wmakeCheckPwd "$WM_THIRD_PARTY_DIR" 2>/dev/null || {
echo "Error (${0##*/}) : not located in \$WM_THIRD_PARTY_DIR"
echo " Check your OpenFOAM environment and installation"
exit 1
@@ -133,8 +135,8 @@ else
# ----------------------------
buildDIR=$buildBASE/$qtPACKAGE
- cd $QT_SOURCE_DIR || exit 1
- export GIT_DIR=$PWD/.git # Mask seeing our own git-repo
+ cd "$QT_SOURCE_DIR" || exit
+ export GIT_DIR="$PWD/.git" # Mask seeing our own git-repo
[ -e Makefile ] && make distclean 2>/dev/null
# Remove any existing build folder and recreate
@@ -147,7 +149,7 @@ else
rm -f "$QT_SOURCE_DIR/src/corelib/global/qconfig.h" 2>/dev/null
rm -f "$QT_SOURCE_DIR/src/corelib/global/qconfig.cpp" 2>/dev/null
- cd $buildDIR || exit 1
+ cd "$buildDIR" || exit
# Compile as opensource, accepting LGPL conditions (yes)
echo yes | $QT_SOURCE_DIR/configure \
diff --git a/makeSCOTCH b/makeSCOTCH
index 74d1cf2..9691b27 100755
--- a/makeSCOTCH
+++ b/makeSCOTCH
@@ -3,9 +3,11 @@
# ========= |
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / O peration |
-# \\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
+# \\ / A nd | www.openfoam.com
# \\/ M anipulation |
#------------------------------------------------------------------------------
+# Copyright (C) 2019 OpenCFD Ltd.
+#------------------------------------------------------------------------------
# License
# This file is part of OpenFOAM, licensed under GNU General Public License
# .
@@ -22,7 +24,8 @@
#------------------------------------------------------------------------------
# Run from third-party directory only
-cd ${0%/*} && wmakeCheckPwd "$WM_THIRD_PARTY_DIR" 2>/dev/null || {
+cd "${0%/*}" || exit
+wmakeCheckPwd "$WM_THIRD_PARTY_DIR" 2>/dev/null || {
echo "Error (${0##*/}) : not located in \$WM_THIRD_PARTY_DIR"
echo " Check your OpenFOAM environment and installation"
exit 1
@@ -154,9 +157,9 @@ then
exit 1
}
- cd $SCOTCH_SOURCE_DIR/src || exit 1
- export GIT_DIR=$SCOTCH_SOURCE_DIR/.git # Mask seeing our own git-repo
- rm -rf $SCOTCH_ARCH_PATH
+ cd "$SCOTCH_SOURCE_DIR/src" || exit
+ export GIT_DIR="$SCOTCH_SOURCE_DIR/.git" # Mask seeing our own git-repo
+ rm -rf "$SCOTCH_ARCH_PATH"
applyPatch "$scotchPACKAGE" .. # patch at parent-level
@@ -239,8 +242,8 @@ else
exit 1
}
- cd $SCOTCH_SOURCE_DIR/src || exit 1
- export GIT_DIR=$SCOTCH_SOURCE_DIR/.git # Mask seeing our own git-repo
+ cd "$SCOTCH_SOURCE_DIR/src" || exit
+ export GIT_DIR="$SCOTCH_SOURCE_DIR/.git" # Mask seeing our own git-repo
echo
prefixDIR=$SCOTCH_ARCH_PATH
diff --git a/makeVTK b/makeVTK
index 20b2659..94c67c9 100755
--- a/makeVTK
+++ b/makeVTK
@@ -3,9 +3,11 @@
# ========= |
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / O peration |
-# \\ / A nd | Copyright (C) 2016-2019 OpenCFD Ltd.
+# \\ / A nd | www.openfoam.com
# \\/ M anipulation |
#------------------------------------------------------------------------------
+# Copyright (C) 2016-2019 OpenCFD Ltd.
+#------------------------------------------------------------------------------
# License
# This file is part of OpenFOAM, licensed under GNU General Public License
# .
@@ -27,7 +29,8 @@
# NO USER-CONFIGURABLE SETTINGS WITHIN THIS FILE
#------------------------------------------------------------------------------
# Run from third-party directory only
-cd ${0%/*} && wmakeCheckPwd "$WM_THIRD_PARTY_DIR" 2>/dev/null || {
+cd "${0%/*}" || exit
+wmakeCheckPwd "$WM_THIRD_PARTY_DIR" 2>/dev/null || {
echo "Error (${0##*/}) : not located in \$WM_THIRD_PARTY_DIR"
echo " Check your OpenFOAM environment and installation"
exit 1
diff --git a/minCmake b/minCmake
index bf749d6..c9c4ea2 100755
--- a/minCmake
+++ b/minCmake
@@ -3,9 +3,11 @@
# ========= |
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / O peration |
-# \\ / A nd | Copyright (C) 2016-2017 OpenCFD Ltd.
+# \\ / A nd | www.openfoam.com
# \\/ M anipulation |
#------------------------------------------------------------------------------
+# Copyright (C) 2016-2019 OpenCFD Ltd.
+#------------------------------------------------------------------------------
# License
# This file is part of OpenFOAM, licensed under GNU General Public License
# .
@@ -20,7 +22,8 @@
# NO USER-CONFIGURABLE SETTINGS WITHIN THIS FILE
#------------------------------------------------------------------------------
# Run from third-party directory only
-cd ${0%/*} && wmakeCheckPwd "$WM_THIRD_PARTY_DIR" 2>/dev/null || {
+cd "${0%/*}" || exit
+wmakeCheckPwd "$WM_THIRD_PARTY_DIR" 2>/dev/null || {
echo "Error (${0##*/}) : not located in \$WM_THIRD_PARTY_DIR"
echo " Check your OpenFOAM environment and installation"
exit 1