mirror of
https://gitee.com/openharmony/third_party_nghttp2
synced 2024-11-23 07:50:02 +00:00
a3dcf1e004
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.
13 lines
236 B
Bash
Executable File
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
|