summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2009-09-18 23:06:21 +0100
committerPádraig Brady <P@draigBrady.com>2009-09-21 12:37:57 +0100
commit5d4f09d83a7c69110b4db97443759e9046c149e1 (patch)
tree150048d2ed16477e5259502ef1df2569e39bab94 /man
parentc48003a53cbeee75dd34f5c3932a60ee97defb28 (diff)
downloadcoreutils-5d4f09d83a7c69110b4db97443759e9046c149e1.tar.xz
doc: mention the texinfo documentation in --help
* src/system.h: Rename emit_bug_reporting_address() to emit_ancillary_info() and update it to not print the translation project address in en_* locales, and _do_ print it in the 'C' (and other) locales so that it's included in the default man page. Also mention how to invoke the texinfo documentation for each command. Also move the "hard-locale.h" include to the 8 files that now use it. * man/help2man: Strip the newly added texinfo reference from the --help output as a more verbose version is already added by help2man. Suggestion from C de-Avillez
Diffstat (limited to 'man')
-rwxr-xr-xman/help2man6
1 files changed, 6 insertions, 0 deletions
diff --git a/man/help2man b/man/help2man
index 7b7ce7a4b..3b19c6402 100755
--- a/man/help2man
+++ b/man/help2man
@@ -373,6 +373,7 @@ my $PAT_AUTHOR = _('Written +by');
my $PAT_OPTIONS = _('Options');
my $PAT_EXAMPLES = _('Examples');
my $PAT_FREE_SOFTWARE = _('This +is +free +software');
+my $PAT_INFO = _('For +complete +documentation');
# Start a new paragraph (if required) for these.
s/([^\n])\n($PAT_BUGS|$PAT_AUTHOR)/$1\n\n$2/og;
@@ -392,6 +393,11 @@ while (length)
$sect = _('EXAMPLES');
next;
}
+ # Skip any texinfo reference as that's handled separately
+ if (s/($PAT_INFO).*\n//o)
+ {
+ next;
+ }
# Copyright section
if (/^Copyright +[(\xa9]/)