3 # Assumes man2html command in path
4 # That is a Perl script downloadable from
5 # http://www.oac.uci.edu/indiv/ehood/man2html.html
7 # also uses our man_xref utility
11 *) echo "Usage: $0 mantree destdir" >&2 ; exit 2 ;;
17 # handle all sections just in case
19 for i in `find $1 -name 'ipsec*.[1-9]'`
22 # then parse that into section number s
34 *) echo "$0 has lost its mind" ; exit 1 ;;
37 # the echos are a kluge
38 # without them, the first section head is not tagged
39 (echo ; echo ; man $s $n ) | man2html > $2/$b.html
41 # man2html doesn't convert man page cross-references such as
42 # ipsec.conf(5) into HTML links
43 # So post-process to do that.
46 ../utils/man_xref $i > temp