File: make_dox.ksh

package info (click to toggle)
grib-api 1.19.0-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 217,848 kB
  • ctags: 16,929
  • sloc: ansic: 111,244; sh: 14,785; makefile: 5,307; f90: 3,583; perl: 3,160; python: 2,830; yacc: 712; fortran: 468; lex: 330; cpp: 305; awk: 66
file content (37 lines) | stat: -rwxr-xr-x 526 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/ksh
set -ex
set -A tools grib_dump grib_ls grib_get grib_copy grib_set grib_filter grib_compare grib_get_data grib_keys grib_index_build
export DOXYGEN_USAGE=1

p4 edit tools.dox

cat tools_head.dox > tools.dox

for tool in ${tools[@]}
do 
  p4 edit ${tool}.dox

set +e
  ./$tool > ${tool}.dox
set -e

cat >> ${tool}.dox <<EOF

\section ${tool}_examples ${tool} examples
EOF

  ./${tool}.sh >> ${tool}.dox

cat >> ${tool}.dox <<EOF
*/
EOF

cat >> tools.dox <<EOF
- \ref ${tool}
EOF

done

cat >> tools.dox <<EOF
*/
EOF