/[MITgcm]/MITgcm_contrib/heimbach/OpenAD/code_shallow_openad3/cb2mUseModules.bash
ViewVC logotype

Annotation of /MITgcm_contrib/heimbach/OpenAD/code_shallow_openad3/cb2mUseModules.bash

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


Revision 1.1 - (hide annotations) (download)
Mon May 7 18:25:48 2007 UTC (19 years, 6 months ago) by utke
Branch: MAIN
updated conversion

1 utke 1.1 #!/bin/bash
2     file=$1
3     cp ${file} ${file}.tmp
4     for includeFile in `egrep "\# *include *\"" ${file} | sed 's/# *include *\"\(.*\)\"/\1/'`
5     do
6     modFileName=${includeFile%.h}_mod.h
7     if [ -f ${modFileName} ]
8     then
9     echo "s/\# *include *\(\"${includeFile}\"\)/\#include \"${modFileName}\"/" > temp.sed
10     cat ${file}.tmp | sed -f temp.sed | sed 's/IMPLICIT NONE//' | sed 's/implicit none//' > ${file}.tmp.1
11     mv ${file}.tmp.1 ${file}.tmp
12     fi
13     done
14     mv ${file}.tmp ${file%.F}_cb2m.FF90

  ViewVC Help
Powered by ViewVC 1.1.22