/[MITgcm]/MITgcm_contrib/heimbach/OpenAD/OAD_support/cb2mGetHeaders.csh
ViewVC logotype

Annotation of /MITgcm_contrib/heimbach/OpenAD/OAD_support/cb2mGetHeaders.csh

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download) (as text)
Mon Oct 6 18:41:06 2008 UTC (16 years, 9 months ago) by utke
Branch: MAIN
File MIME type: application/x-csh
factored out from test cases

1 utke 1.1 #!/bin/csh -f
2     set file=${1:r}
3     set awkScript=${2}
4     awk -f ${awkScript} ${file}.h | grep -v mpif.h > ${file}.h_temp
5     shift
6     shift
7     foreach name ($*)
8     cat ${file}.h_temp | grep -v ${name}.h > ${file}.h_t1
9     mv ${file}.h_t1 ${file}.h_temp
10     end
11     echo ' USE '${file}'_mod' >> ${file}.h_temp
12     mv ${file}.h_temp ${file}_mod.h

  ViewVC Help
Powered by ViewVC 1.1.22