You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
597 B
18 lines
597 B
#!/bin/sh |
|
|
|
# the autodetected version git tag at the end |
|
# can screw up manpage output a little bit |
|
BTCVER=$(bitcoin-cli --version | cut -d"-" -f1 | cut -d"v" -f3) |
|
|
|
# Create a footer file with copyright content. |
|
# This gets autodetected fine for bitcoind if |
|
# --version-string is not set, but has different |
|
# outcomes for bitcoin-qt and bitcoin-cli. |
|
echo "[COPYRIGHT]" > footer.h2m |
|
bitcoind --version | sed -n '1!p' >> footer.h2m |
|
|
|
for cmd in bitcoind bitcoin-qt bitcoin-cli; do |
|
help2man -N --version-string=${BTCVER} --include=footer.h2m -o ../../doc/man/${cmd}.1 ${cmd} |
|
done |
|
|
|
rm -f footer.h2m
|
|
|