Warning, /verification/global_oce_biogeo_bling/input_tap/prepare_run is written in an unsupported language. File is not indexed.
view on githubraw file Latest commit b4daa243 on 2023-05-28 03:53:22 UTC
b4daa24319 Shre*0001 #! /usr/bin/env bash
0002
0003 #- in order to save disc space, take *.bin files
0004 #- from this dir:
0005 fromDir="../../../verification/tutorial_global_oce_biogeo/input"
0006
0007 fileList=`( cd $fromDir ; echo *.bin )`
0008
0009 #echo 'fileList=' $fileList
0010
0011 #- and do a symbolic link in the current directory
0012 # (if the file does not already exist)
0013 if test -d $fromDir ; then
0014 lnkList='files:'
0015 for xx in $fileList
0016 do
0017 if test -r ${fromDir}/$xx ; then
0018 if test ! -r $xx ; then
0019 lnkList=${lnkList}" "$xx
0020 ln -sf ${fromDir}/$xx .
0021 fi
0022 fi
0023 done
0024 echo ' link' $lnkList "from dir:" $fromDir
0025 else
0026 echo " Error:" $fromDir "not a directory"
0027 fi
0028
0029 #- And also from this dir:
0030 fromDir="../input"
0031
0032 fileList=`( cd $fromDir ; echo *.bin )`
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
0053
0054 #- And to simplify maintenance, take parameter files
0055 #- from this dir:
0056 fromDir="../input_ad"
0057
0058 fileList=`( cd $fromDir ; echo data* eedata *.bin sample_prof.nc )`
0059
0060 #echo 'fileList=' $fileList
0061
0062 #- and do a symbolic link in the current directory
0063 # (if the file does not already exist)
0064 if test -d $fromDir ; then
0065 lnkList='files:'
0066 for xx in $fileList
0067 do
0068 if test -r ${fromDir}/$xx ; then
0069 if test ! -r $xx ; then
0070 lnkList=${lnkList}" "$xx
0071 ln -sf ${fromDir}/$xx .
0072 fi
0073 fi
0074 done
0075 echo ' link' $lnkList "from dir:" $fromDir
0076 else
0077 echo " Error:" $fromDir "not a directory"
0078 fi