diff options
author | Jim Meyering <jim@meyering.net> | 2006-02-18 07:40:51 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2006-02-18 07:40:51 +0000 |
commit | d6342e935251a161fb5a31941d3ab4c5049274e6 (patch) | |
tree | db8958c392211ea1490312661551e4cb8e10d367 | |
parent | e7771c1161564b9e03c879f7dabea4b9e820e53b (diff) | |
download | coreutils-d6342e935251a161fb5a31941d3ab4c5049274e6.tar.xz |
(sc_two_space_separator_in_usage): Make the regular
expression match more of the target lines, e.g., those that start with
`-S,' (short option followed by a comma) or that include `=[...]'.
Patch by Nicolas François.
-rw-r--r-- | Makefile.maint | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile.maint b/Makefile.maint index 455f4756c..5837ff8d5 100644 --- a/Makefile.maint +++ b/Makefile.maint @@ -262,8 +262,12 @@ sc_trailing_blank: { echo '$(ME): found trailing blank(s)' \ 1>&2; exit 1; } || : +# 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-]*\])? sc_two_space_separator_in_usage: - @grep -n '^ *--[a-z][0-9A-Za-z-]* [^ ].*\\$$' \ + @grep -nE '^ *(-[A-Za-z],)? $(longopt_re) [^ ].*\\$$' \ $$($(CVS_LIST_EXCEPT)) && \ { echo "$(ME): help2man requires at least two spaces between"; \ echo "$(ME): an option and its description"; \ |