mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 23:24:27 +01:00
tools/check-manpage.sh: make it work on FreeBSD.
Extended regular expressions are more compatible, it seems (and simpler!). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
846d2f8726
commit
f64272caea
@@ -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 -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":
|
||||||
|
|||||||
Reference in New Issue
Block a user