summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2007-02-10 16:17:41 +0100
committerJim Meyering <jim@meyering.net>2007-02-10 16:17:41 +0100
commitbbb61fa617cdd8de4bffa2497f330787054f1e80 (patch)
tree3674e43ea1a6b4cf987d8fe37386fc5b12b72ca3
parent0c2d21d3f2e8c8eabfb061f24db9368788254a00 (diff)
downloadcoreutils-bbb61fa617cdd8de4bffa2497f330787054f1e80.tar.xz
* Makefile.maint (longopt_re): Relax the regexp, making square
brackets optional, so it matches the newly reported violations, too.
-rw-r--r--ChangeLog5
-rw-r--r--Makefile.maint2
2 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index ec2792cf1..4d53dc1c4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,7 @@
-2007-02-10 Jim Meyering <meyering@rho.meyering.net>
+2007-02-10 Jim Meyering <jim@meyering.net>
+
+ * Makefile.maint (longopt_re): Relax the regexp, making square
+ brackets optional, so it matches the newly reported violations, too.
* src/csplit.c (usage): Use two spaces (not one) to separate
each option string from its description, so help2man formats
diff --git a/Makefile.maint b/Makefile.maint
index 53b61b684..271b0d4ae 100644
--- a/Makefile.maint
+++ b/Makefile.maint
@@ -301,7 +301,7 @@ sc_trailing_blank:
# Match lines like the following, but where there is only one space
# between the options and the description:
# -D, --all-repeated[=delimit-method] print all duplicate lines\n
-longopt_re = --[a-z][0-9A-Za-z-]*(\[=[0-9A-Za-z-]*\])?
+longopt_re = --[a-z][0-9A-Za-z-]*(\[?=[0-9A-Za-z-]*\]?)?
sc_two_space_separator_in_usage:
@grep -nE '^ *(-[A-Za-z],)? $(longopt_re) [^ ].*\\$$' \
$$($(CVS_LIST_EXCEPT)) && \