|
|
@ -14,13 +14,14 @@ BITCOIND=${BITCOIND:-$BINDIR/bitcoind}
|
|
|
|
BITCOINCLI=${BITCOINCLI:-$BINDIR/bitcoin-cli}
|
|
|
|
BITCOINCLI=${BITCOINCLI:-$BINDIR/bitcoin-cli}
|
|
|
|
BITCOINTX=${BITCOINTX:-$BINDIR/bitcoin-tx}
|
|
|
|
BITCOINTX=${BITCOINTX:-$BINDIR/bitcoin-tx}
|
|
|
|
WALLET_TOOL=${WALLET_TOOL:-$BINDIR/bitcoin-wallet}
|
|
|
|
WALLET_TOOL=${WALLET_TOOL:-$BINDIR/bitcoin-wallet}
|
|
|
|
|
|
|
|
BITCOINUTIL=${BITCOINQT:-$BINDIR/bitcoin-util}
|
|
|
|
BITCOINQT=${BITCOINQT:-$BINDIR/qt/bitcoin-qt}
|
|
|
|
BITCOINQT=${BITCOINQT:-$BINDIR/qt/bitcoin-qt}
|
|
|
|
|
|
|
|
|
|
|
|
[ ! -x $BITCOIND ] && echo "$BITCOIND not found or not executable." && exit 1
|
|
|
|
[ ! -x $BITCOIND ] && echo "$BITCOIND not found or not executable." && exit 1
|
|
|
|
|
|
|
|
|
|
|
|
# Don't allow man pages to be generated for binaries built from a dirty tree
|
|
|
|
# Don't allow man pages to be generated for binaries built from a dirty tree
|
|
|
|
DIRTY=""
|
|
|
|
DIRTY=""
|
|
|
|
for cmd in $BITCOIND $BITCOINCLI $BITCOINTX $WALLET_TOOL $BITCOINQT; do
|
|
|
|
for cmd in $BITCOIND $BITCOINCLI $BITCOINTX $WALLET_TOOL $BITCOINUTIL $BITCOINQT; do
|
|
|
|
VERSION_OUTPUT=$($cmd --version)
|
|
|
|
VERSION_OUTPUT=$($cmd --version)
|
|
|
|
if [[ $VERSION_OUTPUT == *"dirty"* ]]; then
|
|
|
|
if [[ $VERSION_OUTPUT == *"dirty"* ]]; then
|
|
|
|
DIRTY="${DIRTY}${cmd}\n"
|
|
|
|
DIRTY="${DIRTY}${cmd}\n"
|
|
|
@ -43,7 +44,7 @@ read -r -a BTCVER <<< "$($BITCOINCLI --version | head -n1 | awk -F'[ -]' '{ prin
|
|
|
|
echo "[COPYRIGHT]" > footer.h2m
|
|
|
|
echo "[COPYRIGHT]" > footer.h2m
|
|
|
|
$BITCOIND --version | sed -n '1!p' >> footer.h2m
|
|
|
|
$BITCOIND --version | sed -n '1!p' >> footer.h2m
|
|
|
|
|
|
|
|
|
|
|
|
for cmd in $BITCOIND $BITCOINCLI $BITCOINTX $WALLET_TOOL $BITCOINQT; do
|
|
|
|
for cmd in $BITCOIND $BITCOINCLI $BITCOINTX $WALLET_TOOL $BITCOINUTIL $BITCOINQT; do
|
|
|
|
cmdname="${cmd##*/}"
|
|
|
|
cmdname="${cmd##*/}"
|
|
|
|
help2man -N --version-string=${BTCVER[0]} --include=footer.h2m -o ${MANDIR}/${cmdname}.1 ${cmd}
|
|
|
|
help2man -N --version-string=${BTCVER[0]} --include=footer.h2m -o ${MANDIR}/${cmdname}.1 ${cmd}
|
|
|
|
sed -i "s/\\\-${BTCVER[1]}//g" ${MANDIR}/${cmdname}.1
|
|
|
|
sed -i "s/\\\-${BTCVER[1]}//g" ${MANDIR}/${cmdname}.1
|
|
|
|