From f64272caea7caaff58a853612f02f1ecc7bac119 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Thu, 21 Jun 2018 14:51:17 +0930 Subject: [PATCH] tools/check-manpage.sh: make it work on FreeBSD. Extended regular expressions are more compatible, it seems (and simpler!). Signed-off-by: Rusty Russell --- tools/check-manpage.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/check-manpage.sh b/tools/check-manpage.sh index 4c35f1b9f..50f917edb 100755 --- a/tools/check-manpage.sh +++ b/tools/check-manpage.sh @@ -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":