eccodes/tools/make_dox.ksh

34 lines
484 B
Bash
Raw Permalink Normal View History

2013-03-25 12:04:10 +00:00
#!/bin/ksh
set -ex
2016-06-28 16:46:02 +00:00
set -A tools grib_dump grib_ls grib_get grib_copy grib_set grib_filter grib_compare grib_get_data grib_index_build
2013-03-25 12:04:10 +00:00
export DOXYGEN_USAGE=1
cat tools_head.dox > tools.dox
for tool in ${tools[@]}
do
2016-06-16 17:49:55 +00:00
set +e
2013-03-25 12:04:10 +00:00
./$tool > ${tool}.dox
2016-06-16 17:49:55 +00:00
set -e
2013-03-25 12:04:10 +00:00
2016-06-16 17:49:55 +00:00
cat >> ${tool}.dox <<EOF
2013-03-25 12:04:10 +00:00
\section ${tool}_examples ${tool} examples
EOF
./${tool}.sh >> ${tool}.dox
2016-06-16 17:49:55 +00:00
cat >> ${tool}.dox <<EOF
2013-03-25 12:04:10 +00:00
*/
EOF
2016-06-16 17:49:55 +00:00
cat >> tools.dox <<EOF
2013-03-25 12:04:10 +00:00
- \ref ${tool}
EOF
done
cat >> tools.dox <<EOF
*/
EOF