Be pickier about only running certain scripts from the cwd

This commit is contained in:
Mark Olesen 2008-08-09 18:50:27 +02:00
parent 679fd493ca
commit 7be206a5f3
11 changed files with 34 additions and 14 deletions

View File

@ -1,19 +1,19 @@
#!/bin/sh
cd ${0%/*} || exit 1 # run from this directory
set -x
# run from this directory only
cd ${0%/*} || exit 1
# wmake is required for subsequent targets
(cd wmake/src && make)
( cd wmake/src && make )
(cd $WM_THIRD_PARTY_DIR && ./Allwmake)
( cd $WM_THIRD_PARTY_DIR && ./Allwmake )
(cd src && ./Allwmake)
( cd src && ./Allwmake )
(cd applications && ./Allwmake)
( cd applications && ./Allwmake )
if [ "$1" = doc ]
then
(cd doc && ./Allwmake)
( cd doc && ./Allwmake )
fi
# ----------------------------------------------------------------- end-of-file

View File

@ -1,5 +1,8 @@
#!/bin/sh
cd ${0%/*} || exit 1 # run from this directory
set -x
( cd solvers && wmake all )
( cd solvers && wmake all )
( cd utilities && wmake all )
# ----------------------------------------------------------------- end-of-file

View File

@ -1,9 +1,11 @@
#!/bin/sh
#
# Build optional components (eg, may depend on third-party libraries)
# -----------------------------------------------------------------------------
cd ${0%/*} || exit 1 # run from this directory
set -x
# run from this directory only
cd ${0%/*} || exit 1
# build libccmio and create lnInclude directory
(

View File

@ -1,4 +1,5 @@
#!/bin/sh
cd ${0%/*} || exit 1 # run from this directory
set -x
rm -rf PV3FoamReader/Make

View File

@ -1,4 +1,5 @@
#!/bin/sh
cd ${0%/*} || exit 1 # run from this directory
set -x
if [ -d "$ParaView_DIR" -a -r "$ParaView_DIR" ]

View File

@ -1,4 +1,5 @@
#!/bin/sh
cd ${0%/*} || exit 1 # run from this directory
set -x
chmod a+rX $WM_PROJECT_DIR
@ -6,3 +7,5 @@ chmod a+rX $WM_PROJECT_DIR/doc
chmod -R a+rX Doxygen
( cd Doxygen && ./Allwmake )
# ----------------------------------------------------------------- end-of-file

View File

@ -5,5 +5,7 @@ umask 22
rm -rf html latex man
doxygen
# fix permissions (NB: '-X' and not '-x'!)
# fix permissions (NB: '+X' and not '+x'!)
chmod -R a+rX ./
# ----------------------------------------------------------------- end-of-file

View File

@ -1,9 +1,11 @@
#!/bin/sh
cd ${0%/*} || exit 1 # run from this directory
set -x
( cd OpenFOAM && wmakeLnInclude . )
( cd Pstream && ./Allwmake )
wmake libo OSspecific/$WM_OS
wmake libo OSspecific/$WM_OS
wmake libso OpenFOAM
wmake libso lagrangian/basic

View File

@ -30,10 +30,12 @@
#
#------------------------------------------------------------------------------
cd ${0%/*} || exit 1 # run from this directory
echo "Cleaning backup files"
find . -type f \( -name "*~" -o -name "*.bak" \) -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 testLoopReport > /dev/null 2>&1

View File

@ -30,6 +30,8 @@
#
#------------------------------------------------------------------------------
cd ${0%/*} || exit 1 # run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions

View File

@ -30,6 +30,8 @@
#
#------------------------------------------------------------------------------
cd ${0%/*} || exit 1 # run from this directory
# FUNCTIONS
#
printUsage () {