From 32d3c24ad6c60c8a21231f6ab84d7350468e362f Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 6 Feb 2006 08:57:49 +0000 Subject: (sc_two_space_separator_in_usage): New rule. (syntax-check-rules): Add it. --- Makefile.maint | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Makefile.maint b/Makefile.maint index 864c5591a..cd6370a82 100644 --- a/Makefile.maint +++ b/Makefile.maint @@ -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: -- cgit v1.2.3-54-g00ecf