Merge pull request #22 from wirc-sjsu/develop-w21
[WRF-SFIRE.git] / external / io_grib1 / WGRIB / src2all
blob3f7264b4a010c63d55b5d10b14f61ebf677e39d8
1 #!/bin/sh
3 # combine source code into one module
4 # easier to compile -- no make file needed
6 # pretty generic script -- just echos, cats and greps.
7 #
9 echo "combining source code into one module"
10 echo "output is wgrib.c"
11 set -x
13 h="bds.h bms.h cnames.h gds.h grib.h pds4.h"
14 c="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"
23 echo >wgrib.c "#include <stdio.h>"
24 echo >>wgrib.c "#include <stdlib.h>"
25 echo >>wgrib.c "#include <string.h>"
26 echo >>wgrib.c "#include <stddef.h>"
27 echo >>wgrib.c "#include <math.h>"
28 echo >>wgrib.c "#include <float.h>"
31 cat $h >>wgrib.c
33 cat $c | grep -v '#include' >> wgrib.c
35 tar -cvf wgrib.tar $h $c src2all makefile Changes