/[MITgcm]/MITgcm_contrib/heimbach/OpenAD/OAD_support/insertTemplateDir.bash
ViewVC logotype

Diff of /MITgcm_contrib/heimbach/OpenAD/OAD_support/insertTemplateDir.bash

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

revision 1.1 by utke, Mon Oct 6 18:41:06 2008 UTC revision 1.2 by utke, Thu Dec 10 20:10:36 2009 UTC
# Line 1  Line 1 
1  #!/bin/bash  #!/bin/bash
2  echo "#generated file" > temp.sed  echo "#generated file" > temp.sed
3  for i in `grep '^      SUBROUTINE ' $1 | awk '{print $2}'`  for i in `grep '^ *SUBROUTINE ' $1 | awk '{print $2}'`
4  do  do
5    # extract the name    # extract the name
6    srName=${i%%\(*}    srName=${i%%\(*}
7    echo "/^      SUBROUTINE $srName(/i\\" >> temp.sed    echo "/^ *SUBROUTINE $srName(/i\\" >> temp.sed
8    case "$srName" in    case "$srName" in
9      "OpenAD_the_second_level_loop" | \      "OpenAD_the_second_level_loop" | \
10      "OpenAD_the_third_level_loop" |  \      "OpenAD_the_third_level_loop" |  \

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.22