Use () to make 'cd -' unnecessary
This commit is contained in:
parent
193fd56eb7
commit
9dcb46baa0
2 changed files with 18 additions and 14 deletions
|
@ -2,16 +2,18 @@
|
|||
cd ${0%/*} || exit 1 # run from this directory
|
||||
|
||||
# Clean compilation in Fluid-Structure Interaction package
|
||||
cd FluidStructureInteraction/src/
|
||||
./Allwclean
|
||||
cd -
|
||||
(
|
||||
cd FluidStructureInteraction/src/
|
||||
./Allwclean
|
||||
)
|
||||
|
||||
# Clean compilation in cfMesh mesh generation package
|
||||
cd cfMesh-v1.0/
|
||||
wclean libso meshLibrary
|
||||
wclean all executables
|
||||
wclean all utilities
|
||||
cd -
|
||||
(
|
||||
cd cfMesh-v1.0/
|
||||
wclean libso meshLibrary
|
||||
wclean all executables
|
||||
wclean all utilities
|
||||
)
|
||||
|
||||
#Clean makeAxialMesh
|
||||
wclean MakeAxialMesh/makeAxialMesh
|
||||
|
|
|
@ -9,9 +9,10 @@ if [ ! -d "FluidStructureInteraction" ]; then
|
|||
rm Fsi_31.tar.gz
|
||||
fi
|
||||
|
||||
cd FluidStructureInteraction/src/
|
||||
./Allwmake
|
||||
cd -
|
||||
(
|
||||
cd FluidStructureInteraction/src
|
||||
./Allwmake
|
||||
)
|
||||
|
||||
# Install cfMesh mesh generation package
|
||||
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_APPBIN/FOAM_USER_APPBIN/g
|
||||
|
||||
cd cfMesh-v1.0/
|
||||
./Allwmake
|
||||
cd -
|
||||
(
|
||||
cd cfMesh-v1.0
|
||||
./Allwmake
|
||||
)
|
||||
|
||||
# Install the makeAxialMesh utilitiy
|
||||
if [ ! -d "MakeAxialMesh" ]; then
|
||||
|
|
Reference in a new issue