Back to home page

MITgcm

 
 

    


Warning, /verification/bottom_ctrl_5x5/input_ad/prepare_run is written in an unsupported language. File is not indexed.

view on githubraw file Latest commit 11c3150c on 2021-10-18 18:00:35 UTC
11c3150c71 Mart*0001 #! /usr/bin/env bash
                0002 
                0003 #- Use file 'ones_64b.bin' from this dir:
                0004 fromDir="../../isomip/input_ad"
                0005 
                0006 fileList='ones_64b.bin'
                0007 
                0008 #- and do a symbolic link in the current directory
                0009 #   (if the file does not already exist)
                0010 if test -d $fromDir ; then
                0011   lnkList='files:'
                0012   for xx in $fileList
                0013   do
                0014     if test -r ${fromDir}/$xx ; then
                0015       if test ! -r $xx ; then
                0016         lnkList=${lnkList}" "$xx
                0017         ln -sf ${fromDir}/$xx .
                0018       fi
                0019     fi
                0020   done
                0021   echo ' link' $lnkList "from dir:" $fromDir
                0022 else
                0023   echo " Error:" $fromDir "not a directory"
                0024 fi