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 /man | |
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 'man')
-rw-r--r-- | man/Makefile.am | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/man/Makefile.am b/man/Makefile.am index 904b302d0..7cebbf143 100644 --- a/man/Makefile.am +++ b/man/Makefile.am @@ -173,6 +173,13 @@ mapped_name = `echo $*|sed 's/^install$$/ginstall/; s/^test$$/[/'` ;; \ esac +# Option descriptions should not start with a capital letter +.PHONY: sc_option_desc_uppercase +sc_option_desc_uppercase: $(dist_man1_MANS) $(NO_INSTALL_PROGS_DEFAULT:%=%.1) + @grep '^\\fB\\-' -A1 *.1 | LC_ALL=C grep '\.1.[A-Z][a-z]' && \ + { echo 1>&2 '$(ME): found initial capitals in --help'; \ + exit 1; } || :; + distcheck-hook: check-x-vs-1 check-programs-vs-x # Sort in traditional ASCII order, regardless of the current locale; |