source: lmdz_wrf/WRFV3/external/io_grib1/WGRIB/src2all @ 1

Last change on this file since 1 was 1, checked in by lfita, 10 years ago
  • -- --- Opening of the WRF+LMDZ coupling repository --- -- -

WRF: version v3.3
LMDZ: version v1818

More details in:

  • Property svn:executable set to *
File size: 1.1 KB
Line 
1#!/bin/sh
2#
3# combine source code into one module
4# easier to compile -- no make file needed
5#
6# pretty generic script -- just echos, cats and greps.
7#
8
9echo "combining source code into one module"
10echo "output is wgrib.c"
11set -x
12
13h="bds.h bms.h cnames.h gds.h grib.h pds4.h"
14c="wgrib_main.c seekgrib.c ibm2flt.c readgrib.c intpower.c cnames.c \
15        BDSunpk.c flt2ieee.c wrtieee.c levels.c PDStimes.c missing.c \
16        nceptable_opn.c nceptable_reanal.c  nceptab_131.c nceptab_130.c \
17        ectable_128.c ectable_129.c ectable_130.c ectable_131.c \
18        ectable_140.c ectable_150.c ectable_151.c ectable_160.c ectable_170.c \
19        ectable_180.c nceptab_129.c \
20        ombtable.c ec_ext.c gds_grid.c gribtable.c PDS_date.c ensemble.c \
21        dwdtable_002.c dwdtable_201.c dwdtable_202.c dwdtable_203.c cptectable_254.c"
22
23echo >wgrib.c "#include <stdio.h>"
24echo >>wgrib.c "#include <stdlib.h>"
25echo >>wgrib.c "#include <string.h>"
26echo >>wgrib.c "#include <stddef.h>"
27echo >>wgrib.c "#include <math.h>"
28echo >>wgrib.c "#include <float.h>"
29
30
31cat $h >>wgrib.c
32
33cat $c | grep -v '#include' >> wgrib.c
34
35tar -cvf wgrib.tar $h $c src2all makefile Changes
Note: See TracBrowser for help on using the repository browser.