diff options
author | Pádraig Brady <P@draigBrady.com> | 2010-02-12 15:19:15 +0000 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2010-02-15 23:42:49 +0000 |
commit | 11d84c10ce88772482c4b99b0bfd730778c437a0 (patch) | |
tree | 79d4e71c16e1d293203009c34cdf4b0752a48eaf /cfg.mk | |
parent | 58c98f23429b17ce9b90bc92fe31fa027edeec91 (diff) | |
download | coreutils-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.mk | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 |