mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-08-23 19:52:57 +02:00
Merge bitcoin/bitcoin#29585: contrib: list other binaries in manpage output
7c3ac598dd
contrib: list other binaries in manpage output (fanquake) Pull request description: Add a `SEE ALSO` section to the manpages. Master:  This PR:  Should be enough to close #29558. ACKs for top commit: jarolrod: tACK7c3ac598dd
willcl-ark: ACK7c3ac598dd
pablomartin4btc: utACK7c3ac598dd
laanwj: Code review ACK7c3ac598dd
Tree-SHA512: 0df13ed5d736aa514a1192115728314fc676714f4cb9131f37b5d9a9bfc8f85f98c21b859d6b62745211f3de16b33ff60888e7f6a4eca66fc0c52442503f4336
This commit is contained in:
@@ -62,6 +62,10 @@ with tempfile.NamedTemporaryFile('w', suffix='.h2m') as footer:
|
||||
# Copyright is the same for all binaries, so just use the first.
|
||||
footer.write('[COPYRIGHT]\n')
|
||||
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()
|
||||
|
||||
# Call the binaries through help2man to produce a manual page for each of them.
|
||||
|
Reference in New Issue
Block a user