Warning, /verification/isomip/input_tap/prepare_run is written in an unsupported language. File is not indexed.
view on githubraw file Latest commit 44c9a33d on 2023-07-20 13:32:09 UTC
b4daa24319 Shre*0001 #! /usr/bin/env bash
0002
0003 #- in order to save disc space, take *.bin files from this dir:
0004 fromDir="../input"
0005
0006 fileList=`( cd $fromDir ; ls bathy.box icetopo.exp1 phi0surf.exp1.jmd95z )`
0007
0008 #echo 'fileList=' $fileList
0009
0010 #- and do a symbolic link in the current directory
0011 # (if the file does not already exist)
0012 if test -d $fromDir ; then
0013 lnkList='files:'
0014 for xx in $fileList
0015 do
0016 if test -r ${fromDir}/$xx ; then
0017 if test ! -r $xx ; then
0018 lnkList=${lnkList}" "$xx
0019 ln -sf ${fromDir}/$xx .
0020 fi
0021 fi
0022 done
0023 echo ' link' $lnkList "from dir:" $fromDir
0024 else
0025 echo " Error:" $fromDir "not a directory"
0026 fi
0027
44c9a33d03 Jean*0028 #- And to simplify maintenance, take parameter files and pickup files
0029 #- from this dir:
b4daa24319 Shre*0030 fromDir="../input_ad"
0031
44c9a33d03 Jean*0032 fileList=`( cd $fromDir ; ls data* eedata pickup* ones_64b.bin )`
b4daa24319 Shre*0033
0034 #echo 'fileList=' $fileList
0035
0036 #- and do a symbolic link in the current directory
0037 # (if the file does not already exist)
0038 if test -d $fromDir ; then
0039 lnkList='files:'
0040 for xx in $fileList
0041 do
0042 if test -r ${fromDir}/$xx ; then
0043 if test ! -r $xx ; then
0044 lnkList=${lnkList}" "$xx
0045 ln -sf ${fromDir}/$xx .
0046 fi
0047 fi
0048 done
0049 echo ' link' $lnkList "from dir:" $fromDir
0050 else
0051 echo " Error:" $fromDir "not a directory"
0052 fi