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

Contents of /MITgcm_contrib/heimbach/OpenAD/code_shallow_openad/cb2mUseModules.bash

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


Revision 1.1 - (show annotations) (download)
Thu Apr 12 04:57:35 2007 UTC (19 years, 7 months ago) by utke
Branch: MAIN
replaced scripts

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 -n .
10 echo "s/\# *include *\(\"${includeFile}\"\)/\#include \"${modFileName}\"/" > temp.sed
11 cat ${file}.tmp | sed -f temp.sed | sed 's/IMPLICIT NONE//' | sed 's/implicit none//' > ${file}.tmp.1
12 mv ${file}.tmp.1 ${file}.tmp
13 fi
14 done
15 mv ${file}.tmp ${file%.F}_cb2m.FF90

  ViewVC Help
Powered by ViewVC 1.1.22