2 # gathers manpages up into dir, converts them to HTML, including interlinking
3 # Assumes RedHat6.0 man2html available.
5 PATH=/usr/local/bin:/bin:/usr/bin:/usr/contrib/bin ; export PATH
9 0) echo "Usage: $0 destdir manpage ..." >&2 ; exit 1 ;;
21 ipsec*) ;; # ipsec.8, ipsec.conf.5, etc.
25 ../utils/manlink $dir $b
28 # build the html (sed mess fixes overly-smart man2html's crud)
29 refpat='"http://localhost/cgi-bin/man/man2html?\([1-8]\)+\([^"]*\)"'
32 man2html $f | sed 's;'"$refpat"';"\2.\1.html";g' >$f.html
35 # remove the source files (must wait until after all builds, due to symlinks)