mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 05:12:45 +01:00
doc/Makefile: adapt 'check-manpages' to markdown
This commit is contained in:
parent
49be9b5545
commit
77f34fad2b
@ -79,8 +79,8 @@ clean: doc-clean
|
|||||||
check: check-manpages
|
check: check-manpages
|
||||||
|
|
||||||
check-manpages: cli/lightning-cli lightningd/lightningd
|
check-manpages: cli/lightning-cli lightningd/lightningd
|
||||||
@tools/check-manpage.sh cli/lightning-cli doc/lightning-cli.1.txt
|
@tools/check-manpage.sh cli/lightning-cli doc/lightning-cli.1.md
|
||||||
@tools/check-manpage.sh "lightningd/lightningd --lightning-dir=/tmp/" doc/lightningd-config.5.txt
|
@tools/check-manpage.sh "lightningd/lightningd --lightning-dir=/tmp/" doc/lightningd-config.5.md
|
||||||
|
|
||||||
doc-maintainer-clean:
|
doc-maintainer-clean:
|
||||||
$(RM) doc/deployable-lightning.pdf
|
$(RM) doc/deployable-lightning.pdf
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# Needs bash for process substitition, ie <(
|
# Needs bash for process substitition, ie <(
|
||||||
|
|
||||||
if [ $# != 2 ]; then
|
if [ $# != 2 ]; then
|
||||||
echo "Usage $0 <command> <asciidoc.txt>" >&2
|
echo "Usage $0 <command> <markdown.md>" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -30,7 +30,7 @@ get_cmd_opts()
|
|||||||
CMD_OPTNAMES=$(get_cmd_opts "$1" | sort)
|
CMD_OPTNAMES=$(get_cmd_opts "$1" | sort)
|
||||||
|
|
||||||
# Now, gather (long) opt names from man page, make sure they match.
|
# Now, gather (long) opt names from man page, make sure they match.
|
||||||
MAN_OPTNAMES=$(sed -E -n 's/^\*(--)?([^*/]*)\*(=?).*::/\2\3/p' < "$2" | sort)
|
MAN_OPTNAMES=$(sed -E -n 's/^ \*\*(--)?([^*/]*)\*\*(=?).*/\2\3/p' < "$2" | sort)
|
||||||
|
|
||||||
if [ "$CMD_OPTNAMES" != "$MAN_OPTNAMES" ]; then
|
if [ "$CMD_OPTNAMES" != "$MAN_OPTNAMES" ]; then
|
||||||
echo "diff of command names vs manpage names":
|
echo "diff of command names vs manpage names":
|
||||||
|
Loading…
Reference in New Issue
Block a user