Back to home page

MITgcm

 
 

    


Warning, /tools/OAD_support/cb2mGetHeaders.csh is written in an unsupported language. File is not indexed.

view on githubraw file Latest commit 8702af1f on 2012-09-20 23:12:48 UTC
8702af1f36 Patr*0001 #!/bin/csh -f
                0002 set file=${1:r}
                0003 set awkScript=${2} 
                0004 awk -f ${awkScript} ${file}.h  | grep -v mpif.h > ${file}.h_temp
                0005 shift
                0006 shift   
                0007 foreach name ($*)
                0008   cat ${file}.h_temp | grep -v ${name}.h > ${file}.h_t1
                0009   mv ${file}.h_t1 ${file}.h_temp
                0010 end
                0011 echo '       USE '${file}'_mod' >> ${file}.h_temp
                0012 mv ${file}.h_temp ${file}_mod.h