mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-07-04 20:44:46 +02:00
scripts+dev.Dockerfile: address dockerfile build issue
This commit is contained in:
@ -14,6 +14,7 @@ ENV GODEBUG netdns=cgo
|
|||||||
|
|
||||||
# Install dependencies.
|
# Install dependencies.
|
||||||
RUN apk add --no-cache --update alpine-sdk \
|
RUN apk add --no-cache --update alpine-sdk \
|
||||||
|
bash \
|
||||||
git \
|
git \
|
||||||
make
|
make
|
||||||
|
|
||||||
|
@ -2,23 +2,30 @@
|
|||||||
|
|
||||||
# Usage: ./gen_man_pages.sh DESTDIR PREFIX
|
# Usage: ./gen_man_pages.sh DESTDIR PREFIX
|
||||||
|
|
||||||
DESTDIR="$1"
|
|
||||||
PREFIX="$2"
|
|
||||||
|
|
||||||
# Check if lncli is installed.
|
# Check if lncli is installed.
|
||||||
if ! command -v lncli &> /dev/null
|
function check_lncli_installed() {
|
||||||
then
|
if [[ ! $(command -v lncli) ]]
|
||||||
|
then
|
||||||
echo "lncli could not be found. Please install lncli before running this script."
|
echo "lncli could not be found. Please install lncli before running this script."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
DESTDIR="$1"
|
||||||
|
PREFIX="$2"
|
||||||
|
FULLPATH="$DESTDIR$PREFIX"
|
||||||
|
|
||||||
|
check_lncli_installed
|
||||||
|
|
||||||
# Ignore warnings regarding HTMLBlock detection in go-md2man package
|
# Ignore warnings regarding HTMLBlock detection in go-md2man package
|
||||||
# since using "<...>" is part of our docs.
|
# since using "<...>" is part of our docs.
|
||||||
lncli generatemanpage 2>&1 | grep -v "go-md2man does not handle node type HTMLSpan" || true
|
lncli generatemanpage 2>&1 | grep -v "go-md2man does not handle node type HTMLSpan" || true
|
||||||
|
|
||||||
echo "Installing man pages to $DESTDIR$PREFIX/share/man/man1."
|
mkdir -p "$FULLPATH/share/man/man1"
|
||||||
install -m 644 lnd.1 "$DESTDIR$PREFIX/share/man/man1/lnd.1"
|
|
||||||
install -m 644 lncli.1 "$DESTDIR$PREFIX/share/man/man1/lncli.1"
|
echo "Installing man pages to $FULLPATH/share/man/man1."
|
||||||
|
install -m 644 lnd.1 "$FULLPATH/share/man/man1/lnd.1"
|
||||||
|
install -m 644 lncli.1 "$FULLPATH/share/man/man1/lncli.1"
|
||||||
|
|
||||||
# Remove lncli.1 and lnd.1 artifacts from the current working directory.
|
# Remove lncli.1 and lnd.1 artifacts from the current working directory.
|
||||||
rm -f lncli.1 lnd.1
|
rm -f lncli.1 lnd.1
|
||||||
|
Reference in New Issue
Block a user