summaryrefslogtreecommitdiff
path: root/src
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 /src
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 'src')
-rw-r--r--src/Makefile.am5
-rw-r--r--src/base64.c6
-rw-r--r--src/stdbuf.c6
-rw-r--r--src/truncate.c2
4 files changed, 12 insertions, 7 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index c73f7dc07..addc2eb19 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -642,6 +642,11 @@ all_programs.list:
# install a binary, require that all programs be built at distribution time.
dist-hook: $(all_programs)
+# Ensure that all programs are built so we can for example
+# subsequently syntax check all man pages.
+.PHONY: all_programs
+all_programs: $(all_programs)
+
pm = progs-makefile
pr = progs-readme
# Ensure that the list of programs in README matches the list
diff --git a/src/base64.c b/src/base64.c
index ce58f2fdb..34569eca4 100644
--- a/src/base64.c
+++ b/src/base64.c
@@ -61,9 +61,9 @@ Usage: %s [OPTION]... [FILE]\n\
Base64 encode or decode FILE, or standard input, to standard output.\n\
\n"), program_name);
fputs (_("\
- -d, --decode Decode data\n\
- -i, --ignore-garbage When decoding, ignore non-alphabet characters\n\
- -w, --wrap=COLS Wrap encoded lines after COLS character (default 76).\n\
+ -d, --decode decode data\n\
+ -i, --ignore-garbage when decoding, ignore non-alphabet characters\n\
+ -w, --wrap=COLS wrap encoded lines after COLS character (default 76).\n\
Use 0 to disable line wrapping\n\
\n\
"), stdout);
diff --git a/src/stdbuf.c b/src/stdbuf.c
index de3f515aa..d9d6f17d0 100644
--- a/src/stdbuf.c
+++ b/src/stdbuf.c
@@ -98,9 +98,9 @@ Run COMMAND, with modified buffering operations for its standard streams.\n\
Mandatory arguments to long options are mandatory for short options too.\n\
"), stdout);
fputs (_("\
- -i, --input=MODE Adjust standard input stream buffering\n\
- -o, --output=MODE Adjust standard output stream buffering\n\
- -e, --error=MODE Adjust standard error stream buffering\n\
+ -i, --input=MODE adjust standard input stream buffering\n\
+ -o, --output=MODE adjust standard output stream buffering\n\
+ -e, --error=MODE adjust standard error stream buffering\n\
"), stdout);
fputs (HELP_OPTION_DESCRIPTION, stdout);
fputs (VERSION_OPTION_DESCRIPTION, stdout);
diff --git a/src/truncate.c b/src/truncate.c
index 5085d2c0f..70573cc2f 100644
--- a/src/truncate.c
+++ b/src/truncate.c
@@ -117,7 +117,7 @@ Mandatory arguments to long options are mandatory for short options too.\n\
-c, --no-create do not create any files\n\
"), stdout);
fputs (_("\
- -o, --io-blocks Treat SIZE as number of IO blocks instead of bytes\n\
+ -o, --io-blocks treat SIZE as number of IO blocks instead of bytes\n\
"), stdout);
fputs (_("\
-r, --reference=FILE use this FILE's size\n\