From 296b0bad0b7f7d9b75095081fe8b205229cbc8ca Mon Sep 17 00:00:00 2001 From: Henrik Rusche Date: Wed, 22 Jun 2016 14:13:11 +0200 Subject: [PATCH] Convert & stabilise tcsh-scripts --- tutorials/FSI/ampFsiFoam/3dTube/makeLinks | 26 +++++++------------ .../FSI/ampFsiFoam/3dTube/makeSerialLinks | 18 ++++--------- .../FSI/ampFsiFoam/3dTube/removeSerialLinks | 12 +++------ .../FSI/ampFsiFoam/axisymmetricTube/makeLinks | 26 +++++++------------ .../axisymmetricTube/makeSerialLinks | 18 ++++--------- .../axisymmetricTube/removeSerialLinks | 12 +++------ tutorials/FSI/fsiFoam/3dTube/makeLinks | 26 +++++++------------ tutorials/FSI/fsiFoam/3dTube/makeSerialLinks | 18 ++++--------- .../FSI/fsiFoam/3dTube/removeSerialLinks | 12 +++------ tutorials/FSI/fsiFoam/HronTurekFsi3/makeLinks | 26 +++++++------------ .../FSI/fsiFoam/HronTurekFsi3/makeSerialLinks | 18 ++++--------- .../fsiFoam/HronTurekFsi3/removeSerialLinks | 12 +++------ .../FSI/fsiFoam/beamInCrossFlow/makeLinks | 26 +++++++------------ .../fsiFoam/beamInCrossFlow/makeSerialLinks | 18 ++++--------- .../fsiFoam/beamInCrossFlow/removeSerialLinks | 12 +++------ .../FSI/weakFsiFoam/beamInCrossFlow/makeLinks | 26 +++++++------------ .../beamInCrossFlow/makeSerialLinks | 18 ++++--------- .../beamInCrossFlow/removeSerialLinks | 12 +++------ 18 files changed, 108 insertions(+), 228 deletions(-) diff --git a/tutorials/FSI/ampFsiFoam/3dTube/makeLinks b/tutorials/FSI/ampFsiFoam/3dTube/makeLinks index 5cf16074f..bac9bc3c9 100755 --- a/tutorials/FSI/ampFsiFoam/3dTube/makeLinks +++ b/tutorials/FSI/ampFsiFoam/3dTube/makeLinks @@ -1,27 +1,19 @@ -#!/bin/tcsh +#!/bin/sh -x -cd $1 - -cd constant - -ln -s ../../$2/constant solid +cd $1/constant +ln -sf ../../$2/constant solid cd ../system - -ln -s ../../$2/system solid - +ln -sf ../../$2/system solid cd ../0 - -ln -s ../../$2/0 solid - +ln -sf ../../$2/0 solid cd .. - -foreach proc(processor*) +for proc in processor*; do cd $proc cd 0 -ln -s ../../../$2/$proc/0 solid +ln -sf ../../../$2/$proc/0 solid cd ../constant -ln -s ../../../$2/$proc/constant solid +ln -sf ../../../$2/$proc/constant solid cd ../.. -end +done diff --git a/tutorials/FSI/ampFsiFoam/3dTube/makeSerialLinks b/tutorials/FSI/ampFsiFoam/3dTube/makeSerialLinks index d14e8c434..103c6e208 100755 --- a/tutorials/FSI/ampFsiFoam/3dTube/makeSerialLinks +++ b/tutorials/FSI/ampFsiFoam/3dTube/makeSerialLinks @@ -1,18 +1,10 @@ -#!/bin/tcsh +#!/bin/sh -cd $1 - - -cd constant - -ln -s ../../$2/constant solid +cd $1/constant +ln -sf ../../$2/constant solid cd ../system - -ln -s ../../$2/system solid - +ln -sf ../../$2/system solid cd ../0 - -ln -s ../../$2/0 solid - +ln -sf ../../$2/0 solid cd ../../ diff --git a/tutorials/FSI/ampFsiFoam/3dTube/removeSerialLinks b/tutorials/FSI/ampFsiFoam/3dTube/removeSerialLinks index 551ceb63d..67242ddf3 100755 --- a/tutorials/FSI/ampFsiFoam/3dTube/removeSerialLinks +++ b/tutorials/FSI/ampFsiFoam/3dTube/removeSerialLinks @@ -1,11 +1,7 @@ -#!/bin/tcsh +#!/bin/sh cd $1 - -rm 0/solid - -rm constant/solid - -rm system/solid - +rm -f 0/solid +rm -f constant/solid +rm -f system/solid cd .. diff --git a/tutorials/FSI/ampFsiFoam/axisymmetricTube/makeLinks b/tutorials/FSI/ampFsiFoam/axisymmetricTube/makeLinks index 5cf16074f..bac9bc3c9 100755 --- a/tutorials/FSI/ampFsiFoam/axisymmetricTube/makeLinks +++ b/tutorials/FSI/ampFsiFoam/axisymmetricTube/makeLinks @@ -1,27 +1,19 @@ -#!/bin/tcsh +#!/bin/sh -x -cd $1 - -cd constant - -ln -s ../../$2/constant solid +cd $1/constant +ln -sf ../../$2/constant solid cd ../system - -ln -s ../../$2/system solid - +ln -sf ../../$2/system solid cd ../0 - -ln -s ../../$2/0 solid - +ln -sf ../../$2/0 solid cd .. - -foreach proc(processor*) +for proc in processor*; do cd $proc cd 0 -ln -s ../../../$2/$proc/0 solid +ln -sf ../../../$2/$proc/0 solid cd ../constant -ln -s ../../../$2/$proc/constant solid +ln -sf ../../../$2/$proc/constant solid cd ../.. -end +done diff --git a/tutorials/FSI/ampFsiFoam/axisymmetricTube/makeSerialLinks b/tutorials/FSI/ampFsiFoam/axisymmetricTube/makeSerialLinks index d14e8c434..103c6e208 100755 --- a/tutorials/FSI/ampFsiFoam/axisymmetricTube/makeSerialLinks +++ b/tutorials/FSI/ampFsiFoam/axisymmetricTube/makeSerialLinks @@ -1,18 +1,10 @@ -#!/bin/tcsh +#!/bin/sh -cd $1 - - -cd constant - -ln -s ../../$2/constant solid +cd $1/constant +ln -sf ../../$2/constant solid cd ../system - -ln -s ../../$2/system solid - +ln -sf ../../$2/system solid cd ../0 - -ln -s ../../$2/0 solid - +ln -sf ../../$2/0 solid cd ../../ diff --git a/tutorials/FSI/ampFsiFoam/axisymmetricTube/removeSerialLinks b/tutorials/FSI/ampFsiFoam/axisymmetricTube/removeSerialLinks index 551ceb63d..67242ddf3 100755 --- a/tutorials/FSI/ampFsiFoam/axisymmetricTube/removeSerialLinks +++ b/tutorials/FSI/ampFsiFoam/axisymmetricTube/removeSerialLinks @@ -1,11 +1,7 @@ -#!/bin/tcsh +#!/bin/sh cd $1 - -rm 0/solid - -rm constant/solid - -rm system/solid - +rm -f 0/solid +rm -f constant/solid +rm -f system/solid cd .. diff --git a/tutorials/FSI/fsiFoam/3dTube/makeLinks b/tutorials/FSI/fsiFoam/3dTube/makeLinks index 5cf16074f..bac9bc3c9 100755 --- a/tutorials/FSI/fsiFoam/3dTube/makeLinks +++ b/tutorials/FSI/fsiFoam/3dTube/makeLinks @@ -1,27 +1,19 @@ -#!/bin/tcsh +#!/bin/sh -x -cd $1 - -cd constant - -ln -s ../../$2/constant solid +cd $1/constant +ln -sf ../../$2/constant solid cd ../system - -ln -s ../../$2/system solid - +ln -sf ../../$2/system solid cd ../0 - -ln -s ../../$2/0 solid - +ln -sf ../../$2/0 solid cd .. - -foreach proc(processor*) +for proc in processor*; do cd $proc cd 0 -ln -s ../../../$2/$proc/0 solid +ln -sf ../../../$2/$proc/0 solid cd ../constant -ln -s ../../../$2/$proc/constant solid +ln -sf ../../../$2/$proc/constant solid cd ../.. -end +done diff --git a/tutorials/FSI/fsiFoam/3dTube/makeSerialLinks b/tutorials/FSI/fsiFoam/3dTube/makeSerialLinks index d14e8c434..103c6e208 100755 --- a/tutorials/FSI/fsiFoam/3dTube/makeSerialLinks +++ b/tutorials/FSI/fsiFoam/3dTube/makeSerialLinks @@ -1,18 +1,10 @@ -#!/bin/tcsh +#!/bin/sh -cd $1 - - -cd constant - -ln -s ../../$2/constant solid +cd $1/constant +ln -sf ../../$2/constant solid cd ../system - -ln -s ../../$2/system solid - +ln -sf ../../$2/system solid cd ../0 - -ln -s ../../$2/0 solid - +ln -sf ../../$2/0 solid cd ../../ diff --git a/tutorials/FSI/fsiFoam/3dTube/removeSerialLinks b/tutorials/FSI/fsiFoam/3dTube/removeSerialLinks index 551ceb63d..67242ddf3 100755 --- a/tutorials/FSI/fsiFoam/3dTube/removeSerialLinks +++ b/tutorials/FSI/fsiFoam/3dTube/removeSerialLinks @@ -1,11 +1,7 @@ -#!/bin/tcsh +#!/bin/sh cd $1 - -rm 0/solid - -rm constant/solid - -rm system/solid - +rm -f 0/solid +rm -f constant/solid +rm -f system/solid cd .. diff --git a/tutorials/FSI/fsiFoam/HronTurekFsi3/makeLinks b/tutorials/FSI/fsiFoam/HronTurekFsi3/makeLinks index 5cf16074f..bac9bc3c9 100755 --- a/tutorials/FSI/fsiFoam/HronTurekFsi3/makeLinks +++ b/tutorials/FSI/fsiFoam/HronTurekFsi3/makeLinks @@ -1,27 +1,19 @@ -#!/bin/tcsh +#!/bin/sh -x -cd $1 - -cd constant - -ln -s ../../$2/constant solid +cd $1/constant +ln -sf ../../$2/constant solid cd ../system - -ln -s ../../$2/system solid - +ln -sf ../../$2/system solid cd ../0 - -ln -s ../../$2/0 solid - +ln -sf ../../$2/0 solid cd .. - -foreach proc(processor*) +for proc in processor*; do cd $proc cd 0 -ln -s ../../../$2/$proc/0 solid +ln -sf ../../../$2/$proc/0 solid cd ../constant -ln -s ../../../$2/$proc/constant solid +ln -sf ../../../$2/$proc/constant solid cd ../.. -end +done diff --git a/tutorials/FSI/fsiFoam/HronTurekFsi3/makeSerialLinks b/tutorials/FSI/fsiFoam/HronTurekFsi3/makeSerialLinks index d14e8c434..103c6e208 100755 --- a/tutorials/FSI/fsiFoam/HronTurekFsi3/makeSerialLinks +++ b/tutorials/FSI/fsiFoam/HronTurekFsi3/makeSerialLinks @@ -1,18 +1,10 @@ -#!/bin/tcsh +#!/bin/sh -cd $1 - - -cd constant - -ln -s ../../$2/constant solid +cd $1/constant +ln -sf ../../$2/constant solid cd ../system - -ln -s ../../$2/system solid - +ln -sf ../../$2/system solid cd ../0 - -ln -s ../../$2/0 solid - +ln -sf ../../$2/0 solid cd ../../ diff --git a/tutorials/FSI/fsiFoam/HronTurekFsi3/removeSerialLinks b/tutorials/FSI/fsiFoam/HronTurekFsi3/removeSerialLinks index 551ceb63d..67242ddf3 100755 --- a/tutorials/FSI/fsiFoam/HronTurekFsi3/removeSerialLinks +++ b/tutorials/FSI/fsiFoam/HronTurekFsi3/removeSerialLinks @@ -1,11 +1,7 @@ -#!/bin/tcsh +#!/bin/sh cd $1 - -rm 0/solid - -rm constant/solid - -rm system/solid - +rm -f 0/solid +rm -f constant/solid +rm -f system/solid cd .. diff --git a/tutorials/FSI/fsiFoam/beamInCrossFlow/makeLinks b/tutorials/FSI/fsiFoam/beamInCrossFlow/makeLinks index 5cf16074f..bac9bc3c9 100755 --- a/tutorials/FSI/fsiFoam/beamInCrossFlow/makeLinks +++ b/tutorials/FSI/fsiFoam/beamInCrossFlow/makeLinks @@ -1,27 +1,19 @@ -#!/bin/tcsh +#!/bin/sh -x -cd $1 - -cd constant - -ln -s ../../$2/constant solid +cd $1/constant +ln -sf ../../$2/constant solid cd ../system - -ln -s ../../$2/system solid - +ln -sf ../../$2/system solid cd ../0 - -ln -s ../../$2/0 solid - +ln -sf ../../$2/0 solid cd .. - -foreach proc(processor*) +for proc in processor*; do cd $proc cd 0 -ln -s ../../../$2/$proc/0 solid +ln -sf ../../../$2/$proc/0 solid cd ../constant -ln -s ../../../$2/$proc/constant solid +ln -sf ../../../$2/$proc/constant solid cd ../.. -end +done diff --git a/tutorials/FSI/fsiFoam/beamInCrossFlow/makeSerialLinks b/tutorials/FSI/fsiFoam/beamInCrossFlow/makeSerialLinks index d14e8c434..103c6e208 100755 --- a/tutorials/FSI/fsiFoam/beamInCrossFlow/makeSerialLinks +++ b/tutorials/FSI/fsiFoam/beamInCrossFlow/makeSerialLinks @@ -1,18 +1,10 @@ -#!/bin/tcsh +#!/bin/sh -cd $1 - - -cd constant - -ln -s ../../$2/constant solid +cd $1/constant +ln -sf ../../$2/constant solid cd ../system - -ln -s ../../$2/system solid - +ln -sf ../../$2/system solid cd ../0 - -ln -s ../../$2/0 solid - +ln -sf ../../$2/0 solid cd ../../ diff --git a/tutorials/FSI/fsiFoam/beamInCrossFlow/removeSerialLinks b/tutorials/FSI/fsiFoam/beamInCrossFlow/removeSerialLinks index 551ceb63d..67242ddf3 100755 --- a/tutorials/FSI/fsiFoam/beamInCrossFlow/removeSerialLinks +++ b/tutorials/FSI/fsiFoam/beamInCrossFlow/removeSerialLinks @@ -1,11 +1,7 @@ -#!/bin/tcsh +#!/bin/sh cd $1 - -rm 0/solid - -rm constant/solid - -rm system/solid - +rm -f 0/solid +rm -f constant/solid +rm -f system/solid cd .. diff --git a/tutorials/FSI/weakFsiFoam/beamInCrossFlow/makeLinks b/tutorials/FSI/weakFsiFoam/beamInCrossFlow/makeLinks index 5cf16074f..bac9bc3c9 100755 --- a/tutorials/FSI/weakFsiFoam/beamInCrossFlow/makeLinks +++ b/tutorials/FSI/weakFsiFoam/beamInCrossFlow/makeLinks @@ -1,27 +1,19 @@ -#!/bin/tcsh +#!/bin/sh -x -cd $1 - -cd constant - -ln -s ../../$2/constant solid +cd $1/constant +ln -sf ../../$2/constant solid cd ../system - -ln -s ../../$2/system solid - +ln -sf ../../$2/system solid cd ../0 - -ln -s ../../$2/0 solid - +ln -sf ../../$2/0 solid cd .. - -foreach proc(processor*) +for proc in processor*; do cd $proc cd 0 -ln -s ../../../$2/$proc/0 solid +ln -sf ../../../$2/$proc/0 solid cd ../constant -ln -s ../../../$2/$proc/constant solid +ln -sf ../../../$2/$proc/constant solid cd ../.. -end +done diff --git a/tutorials/FSI/weakFsiFoam/beamInCrossFlow/makeSerialLinks b/tutorials/FSI/weakFsiFoam/beamInCrossFlow/makeSerialLinks index d14e8c434..103c6e208 100755 --- a/tutorials/FSI/weakFsiFoam/beamInCrossFlow/makeSerialLinks +++ b/tutorials/FSI/weakFsiFoam/beamInCrossFlow/makeSerialLinks @@ -1,18 +1,10 @@ -#!/bin/tcsh +#!/bin/sh -cd $1 - - -cd constant - -ln -s ../../$2/constant solid +cd $1/constant +ln -sf ../../$2/constant solid cd ../system - -ln -s ../../$2/system solid - +ln -sf ../../$2/system solid cd ../0 - -ln -s ../../$2/0 solid - +ln -sf ../../$2/0 solid cd ../../ diff --git a/tutorials/FSI/weakFsiFoam/beamInCrossFlow/removeSerialLinks b/tutorials/FSI/weakFsiFoam/beamInCrossFlow/removeSerialLinks index 551ceb63d..67242ddf3 100755 --- a/tutorials/FSI/weakFsiFoam/beamInCrossFlow/removeSerialLinks +++ b/tutorials/FSI/weakFsiFoam/beamInCrossFlow/removeSerialLinks @@ -1,11 +1,7 @@ -#!/bin/tcsh +#!/bin/sh cd $1 - -rm 0/solid - -rm constant/solid - -rm system/solid - +rm -f 0/solid +rm -f constant/solid +rm -f system/solid cd ..