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 ..