(sc_two_space_separator_in_usage): New rule.
authorJim Meyering <jim@meyering.net>
Mon, 6 Feb 2006 08:57:49 +0000 (08:57 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 6 Feb 2006 08:57:49 +0000 (08:57 +0000)
(syntax-check-rules): Add it.

Makefile.maint

index 864c559..cd6370a 100644 (file)
@@ -92,6 +92,7 @@ syntax-check-rules = \
   sc_system_h_headers \
   sc_tight_scope \
   sc_trailing_blank \
+  sc_two_space_separator_in_usage \
   sc_unmarked_diagnostics \
   sc_useless_cpp_parens
 
@@ -275,6 +276,14 @@ sc_trailing_blank:
          { echo '$(ME): found trailing blank(s)'                       \
                1>&2; exit 1; } || :
 
+sc_two_space_separator_in_usage:
+       @( $(CVS_LIST) ) > /dev/null 2>&1 || : &&                       \
+         grep '^   *--[a-z][0-9A-Za-z-]* [^ ].*\\$$'                   \
+           $$($(CVS_LIST) | grep 'src/.*\.c$$' | grep -vEf .x-$@) &&   \
+         { echo "$(ME): help2man requires at least two spaces between"; \
+           echo "$(ME): an option and its description"; \
+               1>&2; exit 1; } || :
+
 # Look for diagnostics that aren't marked for translation.
 # This won't find any for which error's format string is on a separate line.
 sc_unmarked_diagnostics: