STYLE: Converted tcsh scripts to bash

Conflicts:
	tutorials/solidMechanics/icoFsiElasticNonLinULSolidFoam/HronTurekFsi/makeSerialLinks
	tutorials/solidMechanics/icoFsiElasticNonLinULSolidFoam/HronTurekFsi/removeSerialLinks
This commit is contained in:
Henrik Rusche 2013-12-04 01:48:52 +01:00
parent d6dc105cb8
commit abbef3a87f
3 changed files with 29 additions and 30 deletions

View file

@ -1,39 +1,29 @@
#!/bin/tcsh #!/bin/bash
# Check for proper number of command line args. # Check for proper number of command line args.
if ($#argv != 2) then if [ "$#" -ne 2 ]; then
echo "Usage: makeLinks fluidCase solidCase" echo "Usage: makeLinks fluidCase solidCase"
goto done exit 1
endif fi
echo changing into fluid directory echo changing into fluid directory
cd $1 cd $1/constant
cd constant
echo creating links echo creating links
ln -s ../../$2/constant solid ln -s ../../$2/constant solid
cd ../system cd ../system
ln -s ../../$2/system solid ln -s ../../$2/system solid
cd ../0 cd ../0
ln -s ../../$2/0 solid ln -s ../../$2/0 solid
cd .. cd ..
echo creating processor links echo creating processor links
foreach proc(processor*) for proc in processor*
cd $proc do
cd 0 cd $proc
ln -s ../../../$2/$proc/0 solid cd 0
cd ../constant ln -s ../../../$2/$proc/0 solid
ln -s ../../../$2/$proc/constant solid cd ../constant
cd ../.. ln -s ../../../$2/$proc/constant solid
end cd ../..
done
done:
exit 0

View file

@ -1,4 +1,10 @@
#!/bin/sh #!/bin/bash
# Check for proper number of command line args.
if [ "$#" -ne 2 ]; then
echo "Usage: makeSerialLinks fluidCase solidCase"
exit 1
fi
cd $1 cd $1
cd constant cd constant
@ -7,7 +13,4 @@ cd ../system
ln -s ../../$2/system solid ln -s ../../$2/system solid
cd ../0 cd ../0
ln -s ../../$2/0 solid ln -s ../../$2/0 solid
cd ../../ cd ../..

View file

@ -1,4 +1,10 @@
#!/bin/sh #!/bin/bash
# Check for proper number of command line args.
if [ "$#" -ne 2 ]; then
echo "Usage: removeSerialLinks fluidCase solidCase"
exit 1
fi
cd $1 cd $1
rm -rf 0/solid rm -rf 0/solid