Use () to make 'cd -' unnecessary

This commit is contained in:
Bernhard F.W. Gschaider 2014-10-14 23:18:12 +02:00
parent 193fd56eb7
commit 9dcb46baa0
2 changed files with 18 additions and 14 deletions

View file

@ -2,16 +2,18 @@
cd ${0%/*} || exit 1 # run from this directory cd ${0%/*} || exit 1 # run from this directory
# Clean compilation in Fluid-Structure Interaction package # Clean compilation in Fluid-Structure Interaction package
cd FluidStructureInteraction/src/ (
./Allwclean cd FluidStructureInteraction/src/
cd - ./Allwclean
)
# Clean compilation in cfMesh mesh generation package # Clean compilation in cfMesh mesh generation package
cd cfMesh-v1.0/ (
wclean libso meshLibrary cd cfMesh-v1.0/
wclean all executables wclean libso meshLibrary
wclean all utilities wclean all executables
cd - wclean all utilities
)
#Clean makeAxialMesh #Clean makeAxialMesh
wclean MakeAxialMesh/makeAxialMesh wclean MakeAxialMesh/makeAxialMesh

View file

@ -9,9 +9,10 @@ if [ ! -d "FluidStructureInteraction" ]; then
rm Fsi_31.tar.gz rm Fsi_31.tar.gz
fi fi
cd FluidStructureInteraction/src/ (
./Allwmake cd FluidStructureInteraction/src
cd - ./Allwmake
)
# Install cfMesh mesh generation package # Install cfMesh mesh generation package
if [ ! -d "cfMesh-v1.0" ]; then if [ ! -d "cfMesh-v1.0" ]; then
@ -23,9 +24,10 @@ fi
find cfMesh-v1.0/ -type f | grep "Make/files" | xargs sed -i "" -e s/FOAM_LIBBIN/FOAM_USER_LIBBIN/g find cfMesh-v1.0/ -type f | grep "Make/files" | xargs sed -i "" -e s/FOAM_LIBBIN/FOAM_USER_LIBBIN/g
find cfMesh-v1.0/ -type f | grep "Make/files" | xargs sed -i "" -e s/FOAM_APPBIN/FOAM_USER_APPBIN/g find cfMesh-v1.0/ -type f | grep "Make/files" | xargs sed -i "" -e s/FOAM_APPBIN/FOAM_USER_APPBIN/g
cd cfMesh-v1.0/ (
./Allwmake cd cfMesh-v1.0
cd - ./Allwmake
)
# Install the makeAxialMesh utilitiy # Install the makeAxialMesh utilitiy
if [ ! -d "MakeAxialMesh" ]; then if [ ! -d "MakeAxialMesh" ]; then