contrib: list other binaries in manpage output
This commit is contained in:
1 file changed
+4
@@ -62,6 +62,10 @@ with tempfile.NamedTemporaryFile('w', suffix='.h2m') as footer:
|
|||||||
# Copyright is the same for all binaries, so just use the first.
|
# Copyright is the same for all binaries, so just use the first.
|
||||||
footer.write('[COPYRIGHT]\n')
|
footer.write('[COPYRIGHT]\n')
|
||||||
footer.write('\n'.join(versions[0][2]).strip())
|
footer.write('\n'.join(versions[0][2]).strip())
|
||||||
|
# Create SEE ALSO section
|
||||||
|
footer.write('\n[SEE ALSO]\n')
|
||||||
|
footer.write(', '.join(s.rpartition('/')[2] + '(1)' for s in BINARIES))
|
||||||
|
footer.write('\n')
|
||||||
footer.flush()
|
footer.flush()
|
||||||
|
|
||||||
# Call the binaries through help2man to produce a manual page for each of them.
|
# Call the binaries through help2man to produce a manual page for each of them.
|
||||||
|
|||||||
Reference in new issue
Block a user