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.
if ($#argv != 2) then
if [ "$#" -ne 2 ]; then
echo "Usage: makeLinks fluidCase solidCase"
goto done
endif
exit 1
fi
echo changing into fluid directory
cd $1
cd $1/constant
cd constant
echo creating links
ln -s ../../$2/constant solid
cd ../system
ln -s ../../$2/system solid
cd ../0
ln -s ../../$2/0 solid
cd ..
echo creating processor links
foreach proc(processor*)
cd $proc
cd 0
ln -s ../../../$2/$proc/0 solid
cd ../constant
ln -s ../../../$2/$proc/constant solid
cd ../..
end
done:
exit 0
for proc in processor*
do
cd $proc
cd 0
ln -s ../../../$2/$proc/0 solid
cd ../constant
ln -s ../../../$2/$proc/constant solid
cd ../..
done

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 constant
@ -7,7 +13,4 @@ cd ../system
ln -s ../../$2/system solid
cd ../0
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
rm -rf 0/solid