mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Be pickier about only running certain scripts from the cwd
This commit is contained in:
6
Allwmake
6
Allwmake
@ -1,9 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # run from this directory
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
# run from this directory only
|
|
||||||
cd ${0%/*} || exit 1
|
|
||||||
|
|
||||||
# wmake is required for subsequent targets
|
# wmake is required for subsequent targets
|
||||||
( cd wmake/src && make )
|
( cd wmake/src && make )
|
||||||
|
|
||||||
@ -17,3 +15,5 @@ if [ "$1" = doc ]
|
|||||||
then
|
then
|
||||||
( cd doc && ./Allwmake )
|
( cd doc && ./Allwmake )
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# ----------------------------------------------------------------- end-of-file
|
||||||
|
|||||||
@ -1,5 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # run from this directory
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
( cd solvers && wmake all )
|
( cd solvers && wmake all )
|
||||||
( cd utilities && wmake all )
|
( cd utilities && wmake all )
|
||||||
|
|
||||||
|
# ----------------------------------------------------------------- end-of-file
|
||||||
|
|||||||
@ -1,9 +1,11 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
#
|
||||||
# Build optional components (eg, may depend on third-party libraries)
|
# Build optional components (eg, may depend on third-party libraries)
|
||||||
|
# -----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
cd ${0%/*} || exit 1 # run from this directory
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
# run from this directory only
|
|
||||||
cd ${0%/*} || exit 1
|
|
||||||
|
|
||||||
# build libccmio and create lnInclude directory
|
# build libccmio and create lnInclude directory
|
||||||
(
|
(
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # run from this directory
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
rm -rf PV3FoamReader/Make
|
rm -rf PV3FoamReader/Make
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # run from this directory
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
if [ -d "$ParaView_DIR" -a -r "$ParaView_DIR" ]
|
if [ -d "$ParaView_DIR" -a -r "$ParaView_DIR" ]
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # run from this directory
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
chmod a+rX $WM_PROJECT_DIR
|
chmod a+rX $WM_PROJECT_DIR
|
||||||
@ -6,3 +7,5 @@ chmod a+rX $WM_PROJECT_DIR/doc
|
|||||||
chmod -R a+rX Doxygen
|
chmod -R a+rX Doxygen
|
||||||
|
|
||||||
( cd Doxygen && ./Allwmake )
|
( cd Doxygen && ./Allwmake )
|
||||||
|
|
||||||
|
# ----------------------------------------------------------------- end-of-file
|
||||||
|
|||||||
@ -5,5 +5,7 @@ umask 22
|
|||||||
rm -rf html latex man
|
rm -rf html latex man
|
||||||
doxygen
|
doxygen
|
||||||
|
|
||||||
# fix permissions (NB: '-X' and not '-x'!)
|
# fix permissions (NB: '+X' and not '+x'!)
|
||||||
chmod -R a+rX ./
|
chmod -R a+rX ./
|
||||||
|
|
||||||
|
# ----------------------------------------------------------------- end-of-file
|
||||||
|
|||||||
@ -1,8 +1,10 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # run from this directory
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
( cd OpenFOAM && wmakeLnInclude . )
|
( cd OpenFOAM && wmakeLnInclude . )
|
||||||
( cd Pstream && ./Allwmake )
|
( cd Pstream && ./Allwmake )
|
||||||
|
|
||||||
wmake libo OSspecific/$WM_OS
|
wmake libo OSspecific/$WM_OS
|
||||||
wmake libso OpenFOAM
|
wmake libso OpenFOAM
|
||||||
|
|
||||||
|
|||||||
@ -30,10 +30,12 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
cd ${0%/*} || exit 1 # run from this directory
|
||||||
|
|
||||||
echo "Cleaning backup files"
|
echo "Cleaning backup files"
|
||||||
find . -type f \( -name "*~" -o -name "*.bak" \) -exec rm {} \;
|
find . -type f \( -name "*~" -o -name "*.bak" \) -exec rm {} \;
|
||||||
find . \( -name 'core' -o -name 'core.[1-9]*' \) -exec rm {} \;
|
find . \( -name 'core' -o -name 'core.[1-9]*' \) -exec rm {} \;
|
||||||
find . \( -name '*.pvs' -o -name '*.foam' \) -exec rm {} \;
|
find . \( -name '*.pvs' -o -name '*.OpenFOAM' \) -exec rm {} \;
|
||||||
rm logs > /dev/null 2>&1
|
rm logs > /dev/null 2>&1
|
||||||
rm testLoopReport > /dev/null 2>&1
|
rm testLoopReport > /dev/null 2>&1
|
||||||
|
|
||||||
|
|||||||
@ -30,6 +30,8 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
cd ${0%/*} || exit 1 # run from this directory
|
||||||
|
|
||||||
# Source tutorial run functions
|
# Source tutorial run functions
|
||||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||||
|
|
||||||
|
|||||||
@ -30,6 +30,8 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
cd ${0%/*} || exit 1 # run from this directory
|
||||||
|
|
||||||
# FUNCTIONS
|
# FUNCTIONS
|
||||||
#
|
#
|
||||||
printUsage () {
|
printUsage () {
|
||||||
|
|||||||
Reference in New Issue
Block a user