summaryrefslogtreecommitdiff
path: root/cfg.mk
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2010-02-12 15:19:15 +0000
committerPádraig Brady <P@draigBrady.com>2010-02-15 23:42:49 +0000
commit11d84c10ce88772482c4b99b0bfd730778c437a0 (patch)
tree79d4e71c16e1d293203009c34cdf4b0752a48eaf /cfg.mk
parent58c98f23429b17ce9b90bc92fe31fa027edeec91 (diff)
downloadcoreutils-11d84c10ce88772482c4b99b0bfd730778c437a0.tar.xz
doc: fix inconsistent capitalization in --help output
* src/base64.c (usage): Don't capitalize the first character in an --option description. * src/stdbuf.c (usage): Likewise. * src/truncate.c (usage): Likewise. * cfg.mk (sc_option_desc_uppercase): A new syntax check to stop this happening in future. * man/Makefile.am (sc_option_desc_uppercase): Ensure all man pages are generated, then search for erroneous uppercase chars. * src/Makefile.am (all_programs): Ensure all commands are built so that all man pages can be generated.
Diffstat (limited to 'cfg.mk')
-rw-r--r--cfg.mk9
1 files changed, 9 insertions, 0 deletions
diff --git a/cfg.mk b/cfg.mk
index b5a21c3fc..9c748e324 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -171,6 +171,15 @@ ALL_RECURSIVE_TARGETS += sc_check-AUTHORS
sc_check-AUTHORS:
@$(MAKE) -C src $@
+# Option descriptions should not start with a capital letter
+# One could grep source directly as follows:
+# grep -E " {2,6}-.*[^.] [A-Z][a-z]" $$($(VC_LIST_EXCEPT) | grep '\.c$$')
+# but that would miss descriptions not on the same line as the -option.
+ALL_RECURSIVE_TARGETS += sc_option_desc_uppercase
+sc_option_desc_uppercase:
+ @$(MAKE) -s -C src all_programs
+ @$(MAKE) -s -C man $@
+
# Perl-based tests used to exec perl from a #!/bin/sh script.
# Now they all start with #!/usr/bin/perl and the portability
# infrastructure is in tests/Makefile.am. Make sure no old-style