source: CONFIG_DEVT/IPSLCM6.5_work_ENSEMBLES/oasis3-mct/lib/mct/mpi-serial/protify.awk @ 5725

Last change on this file since 5725 was 5725, checked in by aclsce, 3 years ago

Added new oasis3-MCT version to be used to handle ensembles simulations with XIOS.

  • Property svn:executable set to *
File size: 1.1 KB
Line 
1#!/bin/awk -f
2
3
4#######################################################################
5#
6# Because of awk problems on the sgi, this file is converted to perl
7# via 'a2p' to yield 'protify'.  Do not edit the perl version!!!!
8#
9#######################################################################
10
11
12BEGIN {
13
14  printf("\n");
15  printf("/******************************************************  \n");
16  printf(" * WARNING: This file automatically generated.        *  \n");
17  printf(" ******************************************************  \n");
18  printf(" */                                                      \n");
19  printf("\n\n\n\n");
20}
21
22
23/[ \t]*extern/ { next }
24/main\(/ { next }
25
26/FORT_NAME/ {next}
27
28# Ignore doctext comments
29/\/\*[DMN@]/ { while (!match($0,/[DMN@]\*\//)) getline; next; }
30
31
32/^[^ \t{}/*#].*[^ \t]+\(.*[^;]*$/ \
33   {
34     if ($1=="static")
35       next;                   #continue;
36
37     printf("extern %s",$0);
38
39     while (!match($0,"\)"))
40       {
41         getline;
42         gsub("\t","        ");
43         printf("\n       %s",$0);
44       }
45     printf(";\n");
46   }
Note: See TracBrowser for help on using the repository browser.