mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 09:54:16 +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:
parent
846d2f8726
commit
f64272caea
@ -30,7 +30,7 @@ get_cmd_opts()
|
||||
CMD_OPTNAMES=$(get_cmd_opts "$1" | sort)
|
||||
|
||||
# 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
|
||||
echo "diff of command names vs manpage names":
|
||||
|
Loading…
Reference in New Issue
Block a user