Skip to content

Commit f64272c

Browse files
rustyrussellcdecker
authored andcommitted
tools/check-manpage.sh: make it work on FreeBSD.
Extended regular expressions are more compatible, it seems (and simpler!). Signed-off-by: Rusty Russell <[email protected]>
1 parent 846d2f8 commit f64272c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/check-manpage.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ get_cmd_opts()
3030
CMD_OPTNAMES=$(get_cmd_opts "$1" | sort)
3131

3232
# Now, gather (long) opt names from man page, make sure they match.
33-
MAN_OPTNAMES=$(sed -n 's/^\*\(--\)\?\([^*/]*\)\*\(=\?\).*::/\2\3/p' < "$2" | sort)
33+
MAN_OPTNAMES=$(sed -E -n 's/^\*(--)?([^*/]*)\*(=?).*::/\2\3/p' < "$2" | sort)
3434

3535
if [ "$CMD_OPTNAMES" != "$MAN_OPTNAMES" ]; then
3636
echo "diff of command names vs manpage names":

0 commit comments

Comments
 (0)