Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- SRCDIR=${SRCDIR:-../../src}
- MANDIR=${MANDIR:-../../doc/man}
- BITCOIND=${BITCOIND:-$SRCDIR/bitcoind}
- BITCOINCLI=${BITCOINCLI:-$SRCDIR/bitcoin-cli}
- BITCOINQT=${BITCOINQT:-$SRCDIR/qt/bitcoin-qt}
- [ ! -x $BITCOIND ] && echo "$BITCOIND not found or not executable." && exit 1
- # the autodetected version git tag can screw up manpage output a little bit
- BTCVER=$($BITCOINCLI --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 $BITCOINCLI $BITCOINQT; do
- cmdname="${cmd##*/}"
- help2man -N --version-string=${BTCVER} --include=footer.h2m -o ${MANDIR}/${cmdname}.1 ${cmd}
- done
- rm -f footer.h2m
Add Comment
Please, Sign In to add comment