2013-03-25 12:04:10 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2016-07-11 10:37:33 +00:00
|
|
|
# No need to do tools. We use another mechanism. See top-level
|
|
|
|
# confluence directory
|
|
|
|
#cd ../tools
|
|
|
|
#./make_dox.ksh
|
|
|
|
#cd ../doxygen
|
2016-06-16 17:49:55 +00:00
|
|
|
|
2016-07-11 10:37:33 +00:00
|
|
|
set -e
|
|
|
|
|
|
|
|
./process_C_header.pl ../src/grib_api.h ../src/eccodes.h > eccodes.h
|
|
|
|
|
2016-07-13 12:45:50 +00:00
|
|
|
# Python doxygen module will be "ecCodes" to distinguish it from "eccodes" for F90
|
|
|
|
./process_python.pl ../python/gribapi.py > ecCodes.py
|
2016-07-12 15:15:03 +00:00
|
|
|
|
2016-07-11 10:37:33 +00:00
|
|
|
rm -fr ../html/*
|
2013-03-25 12:04:10 +00:00
|
|
|
touch ../html/Makefile.am
|
|
|
|
doxygen grib_api_wiz.cfg
|
2016-07-11 10:37:33 +00:00
|
|
|
|
|
|
|
# Do not copy this. Use default generated doxygen.css
|
|
|
|
# cp doxygen.css ../html/
|
|
|
|
|
|
|
|
# Remove temp files
|
|
|
|
rm -f eccodes.h
|
2016-07-13 12:45:50 +00:00
|
|
|
rm -f ecCodes.py
|
2016-08-25 15:06:27 +00:00
|
|
|
|
2016-08-25 16:06:47 +00:00
|
|
|
# Change the links from any example code back to confluence
|
2016-08-25 15:06:27 +00:00
|
|
|
fnames="
|
|
|
|
bufr_get_keys
|
|
|
|
grib_index
|
|
|
|
grib_get_keys
|
2016-08-25 18:08:19 +00:00
|
|
|
grib_set_keys
|
|
|
|
grib_get_data
|
2016-08-25 15:06:27 +00:00
|
|
|
grib_clone
|
2016-08-25 18:08:19 +00:00
|
|
|
grib_print_data
|
2016-08-25 15:28:20 +00:00
|
|
|
grib_copy_message
|
2016-08-25 15:06:27 +00:00
|
|
|
count_messages
|
2016-08-25 18:08:19 +00:00
|
|
|
grib_nearest
|
2016-08-25 16:06:47 +00:00
|
|
|
grib_samples
|
2016-08-25 15:48:21 +00:00
|
|
|
grib_set_missing
|
2016-08-25 15:06:27 +00:00
|
|
|
"
|
|
|
|
|
|
|
|
for fn in $fnames; do
|
2016-08-25 18:08:19 +00:00
|
|
|
perl -p -i -e "s|$fn\.f90|<a href=\"https://software.ecmwf.int/wiki/display/ECC/$fn\" target=\"_blank\">$fn.f90</a>|" ../html/classeccodes.html
|
|
|
|
# Do all F90 interface files too
|
|
|
|
perl -p -i -e "s|$fn\.f90|<a href=\"https://software.ecmwf.int/wiki/display/ECC/$fn\" target=\"_blank\">$fn.f90</a>|" ../html/interfaceeccodes*.html
|
2016-08-25 15:06:27 +00:00
|
|
|
done
|
|
|
|
|
2016-08-25 16:49:25 +00:00
|
|
|
pnames="
|
|
|
|
grib_get_keys
|
2016-08-25 17:25:36 +00:00
|
|
|
grib_set_keys
|
|
|
|
grib_samples
|
|
|
|
grib_set_missing
|
2016-08-25 16:49:25 +00:00
|
|
|
grib_nearest
|
|
|
|
grib_index
|
2016-08-25 17:25:36 +00:00
|
|
|
grib_print_data
|
2016-08-25 16:49:25 +00:00
|
|
|
grib_multi_write
|
|
|
|
grib_iterator
|
|
|
|
grib_clone
|
2016-08-25 17:25:36 +00:00
|
|
|
grib_keys_iterator
|
|
|
|
bufr_get_keys
|
2016-08-25 16:49:25 +00:00
|
|
|
"
|
|
|
|
for fn in $pnames; do
|
2016-08-25 18:08:19 +00:00
|
|
|
perl -p -i -e "s|$fn\.py|<a href=\"https://software.ecmwf.int/wiki/display/ECC/$fn\" target=\"_blank\">$fn.py</a>|" ../html/namespaceec_codes.html
|
2016-08-25 16:49:25 +00:00
|
|
|
done
|
|
|
|
|
2016-08-25 15:48:21 +00:00
|
|
|
echo DONE
|