Convert & stabilise tcsh-scripts

This commit is contained in:
Henrik Rusche 2016-06-22 14:13:11 +02:00
parent 0661c1ad4b
commit 296b0bad0b
18 changed files with 108 additions and 228 deletions

View file

@ -1,27 +1,19 @@
#!/bin/tcsh #!/bin/sh -x
cd $1 cd $1/constant
cd constant
ln -s ../../$2/constant solid
ln -sf ../../$2/constant solid
cd ../system cd ../system
ln -sf ../../$2/system solid
ln -s ../../$2/system solid
cd ../0 cd ../0
ln -sf ../../$2/0 solid
ln -s ../../$2/0 solid
cd .. cd ..
for proc in processor*; do
foreach proc(processor*)
cd $proc cd $proc
cd 0 cd 0
ln -s ../../../$2/$proc/0 solid ln -sf ../../../$2/$proc/0 solid
cd ../constant cd ../constant
ln -s ../../../$2/$proc/constant solid ln -sf ../../../$2/$proc/constant solid
cd ../.. cd ../..
end done

View file

@ -1,18 +1,10 @@
#!/bin/tcsh #!/bin/sh
cd $1 cd $1/constant
cd constant
ln -s ../../$2/constant solid
ln -sf ../../$2/constant solid
cd ../system cd ../system
ln -sf ../../$2/system solid
ln -s ../../$2/system solid
cd ../0 cd ../0
ln -sf ../../$2/0 solid
ln -s ../../$2/0 solid
cd ../../ cd ../../

View file

@ -1,11 +1,7 @@
#!/bin/tcsh #!/bin/sh
cd $1 cd $1
rm -f 0/solid
rm 0/solid rm -f constant/solid
rm -f system/solid
rm constant/solid
rm system/solid
cd .. cd ..

View file

@ -1,27 +1,19 @@
#!/bin/tcsh #!/bin/sh -x
cd $1 cd $1/constant
cd constant
ln -s ../../$2/constant solid
ln -sf ../../$2/constant solid
cd ../system cd ../system
ln -sf ../../$2/system solid
ln -s ../../$2/system solid
cd ../0 cd ../0
ln -sf ../../$2/0 solid
ln -s ../../$2/0 solid
cd .. cd ..
for proc in processor*; do
foreach proc(processor*)
cd $proc cd $proc
cd 0 cd 0
ln -s ../../../$2/$proc/0 solid ln -sf ../../../$2/$proc/0 solid
cd ../constant cd ../constant
ln -s ../../../$2/$proc/constant solid ln -sf ../../../$2/$proc/constant solid
cd ../.. cd ../..
end done

View file

@ -1,18 +1,10 @@
#!/bin/tcsh #!/bin/sh
cd $1 cd $1/constant
cd constant
ln -s ../../$2/constant solid
ln -sf ../../$2/constant solid
cd ../system cd ../system
ln -sf ../../$2/system solid
ln -s ../../$2/system solid
cd ../0 cd ../0
ln -sf ../../$2/0 solid
ln -s ../../$2/0 solid
cd ../../ cd ../../

View file

@ -1,11 +1,7 @@
#!/bin/tcsh #!/bin/sh
cd $1 cd $1
rm -f 0/solid
rm 0/solid rm -f constant/solid
rm -f system/solid
rm constant/solid
rm system/solid
cd .. cd ..

View file

@ -1,27 +1,19 @@
#!/bin/tcsh #!/bin/sh -x
cd $1 cd $1/constant
cd constant
ln -s ../../$2/constant solid
ln -sf ../../$2/constant solid
cd ../system cd ../system
ln -sf ../../$2/system solid
ln -s ../../$2/system solid
cd ../0 cd ../0
ln -sf ../../$2/0 solid
ln -s ../../$2/0 solid
cd .. cd ..
for proc in processor*; do
foreach proc(processor*)
cd $proc cd $proc
cd 0 cd 0
ln -s ../../../$2/$proc/0 solid ln -sf ../../../$2/$proc/0 solid
cd ../constant cd ../constant
ln -s ../../../$2/$proc/constant solid ln -sf ../../../$2/$proc/constant solid
cd ../.. cd ../..
end done

View file

@ -1,18 +1,10 @@
#!/bin/tcsh #!/bin/sh
cd $1 cd $1/constant
cd constant
ln -s ../../$2/constant solid
ln -sf ../../$2/constant solid
cd ../system cd ../system
ln -sf ../../$2/system solid
ln -s ../../$2/system solid
cd ../0 cd ../0
ln -sf ../../$2/0 solid
ln -s ../../$2/0 solid
cd ../../ cd ../../

View file

@ -1,11 +1,7 @@
#!/bin/tcsh #!/bin/sh
cd $1 cd $1
rm -f 0/solid
rm 0/solid rm -f constant/solid
rm -f system/solid
rm constant/solid
rm system/solid
cd .. cd ..

View file

@ -1,27 +1,19 @@
#!/bin/tcsh #!/bin/sh -x
cd $1 cd $1/constant
cd constant
ln -s ../../$2/constant solid
ln -sf ../../$2/constant solid
cd ../system cd ../system
ln -sf ../../$2/system solid
ln -s ../../$2/system solid
cd ../0 cd ../0
ln -sf ../../$2/0 solid
ln -s ../../$2/0 solid
cd .. cd ..
for proc in processor*; do
foreach proc(processor*)
cd $proc cd $proc
cd 0 cd 0
ln -s ../../../$2/$proc/0 solid ln -sf ../../../$2/$proc/0 solid
cd ../constant cd ../constant
ln -s ../../../$2/$proc/constant solid ln -sf ../../../$2/$proc/constant solid
cd ../.. cd ../..
end done

View file

@ -1,18 +1,10 @@
#!/bin/tcsh #!/bin/sh
cd $1 cd $1/constant
cd constant
ln -s ../../$2/constant solid
ln -sf ../../$2/constant solid
cd ../system cd ../system
ln -sf ../../$2/system solid
ln -s ../../$2/system solid
cd ../0 cd ../0
ln -sf ../../$2/0 solid
ln -s ../../$2/0 solid
cd ../../ cd ../../

View file

@ -1,11 +1,7 @@
#!/bin/tcsh #!/bin/sh
cd $1 cd $1
rm -f 0/solid
rm 0/solid rm -f constant/solid
rm -f system/solid
rm constant/solid
rm system/solid
cd .. cd ..

View file

@ -1,27 +1,19 @@
#!/bin/tcsh #!/bin/sh -x
cd $1 cd $1/constant
cd constant
ln -s ../../$2/constant solid
ln -sf ../../$2/constant solid
cd ../system cd ../system
ln -sf ../../$2/system solid
ln -s ../../$2/system solid
cd ../0 cd ../0
ln -sf ../../$2/0 solid
ln -s ../../$2/0 solid
cd .. cd ..
for proc in processor*; do
foreach proc(processor*)
cd $proc cd $proc
cd 0 cd 0
ln -s ../../../$2/$proc/0 solid ln -sf ../../../$2/$proc/0 solid
cd ../constant cd ../constant
ln -s ../../../$2/$proc/constant solid ln -sf ../../../$2/$proc/constant solid
cd ../.. cd ../..
end done

View file

@ -1,18 +1,10 @@
#!/bin/tcsh #!/bin/sh
cd $1 cd $1/constant
cd constant
ln -s ../../$2/constant solid
ln -sf ../../$2/constant solid
cd ../system cd ../system
ln -sf ../../$2/system solid
ln -s ../../$2/system solid
cd ../0 cd ../0
ln -sf ../../$2/0 solid
ln -s ../../$2/0 solid
cd ../../ cd ../../

View file

@ -1,11 +1,7 @@
#!/bin/tcsh #!/bin/sh
cd $1 cd $1
rm -f 0/solid
rm 0/solid rm -f constant/solid
rm -f system/solid
rm constant/solid
rm system/solid
cd .. cd ..

View file

@ -1,27 +1,19 @@
#!/bin/tcsh #!/bin/sh -x
cd $1 cd $1/constant
cd constant
ln -s ../../$2/constant solid
ln -sf ../../$2/constant solid
cd ../system cd ../system
ln -sf ../../$2/system solid
ln -s ../../$2/system solid
cd ../0 cd ../0
ln -sf ../../$2/0 solid
ln -s ../../$2/0 solid
cd .. cd ..
for proc in processor*; do
foreach proc(processor*)
cd $proc cd $proc
cd 0 cd 0
ln -s ../../../$2/$proc/0 solid ln -sf ../../../$2/$proc/0 solid
cd ../constant cd ../constant
ln -s ../../../$2/$proc/constant solid ln -sf ../../../$2/$proc/constant solid
cd ../.. cd ../..
end done

View file

@ -1,18 +1,10 @@
#!/bin/tcsh #!/bin/sh
cd $1 cd $1/constant
cd constant
ln -s ../../$2/constant solid
ln -sf ../../$2/constant solid
cd ../system cd ../system
ln -sf ../../$2/system solid
ln -s ../../$2/system solid
cd ../0 cd ../0
ln -sf ../../$2/0 solid
ln -s ../../$2/0 solid
cd ../../ cd ../../

View file

@ -1,11 +1,7 @@
#!/bin/tcsh #!/bin/sh
cd $1 cd $1
rm -f 0/solid
rm 0/solid rm -f constant/solid
rm -f system/solid
rm constant/solid
rm system/solid
cd .. cd ..