third_party_nghttp2/makemanpages
Tatsuhiro Tsujikawa a3dcf1e004 Produce man pages using sphinx
Previously to create manual page for bundled programs, we use help2man
to create man page from program's help output.  Then our man2rst.py
script converts man page to rst document.  Sphinx generates html from
rst documents.

Now help2rst.py produces rst document from programs output.  We use
Sphinx solely to produce both man pages and html files.
2015-01-10 00:37:42 +09:00

13 lines
236 B
Bash
Executable File

#!/bin/sh -e
for prog in nghttp nghttpd nghttpx h2load; do
src/$prog -h | ./help2rst.py -i doc/$prog.h2r > doc/$prog.1.rst
done
cd doc
make man
for prog in nghttp nghttpd nghttpx h2load; do
cp manual/man/$prog.1 $prog.1
done