summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2006-02-06 08:57:49 +0000
committerJim Meyering <jim@meyering.net>2006-02-06 08:57:49 +0000
commit32d3c24ad6c60c8a21231f6ab84d7350468e362f (patch)
treec7b55dbe5fe1a6744d1b8e237936542fd5a17ff1
parentc4ae842f9e153546912de64fac96102de022b79a (diff)
downloadcoreutils-32d3c24ad6c60c8a21231f6ab84d7350468e362f.tar.xz
(sc_two_space_separator_in_usage): New rule.
(syntax-check-rules): Add it.
-rw-r--r--Makefile.maint9
1 files changed, 9 insertions, 0 deletions
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: