/[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.2 - (show annotations) (download)
Thu Apr 12 18:33:01 2007 UTC (19 years, 7 months ago) by utke
Branch: MAIN
Changes since 1.1: +0 -1 lines
cleanup

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