summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2014-09-10 11:53:50 +0100
committerPádraig Brady <P@draigBrady.com>2014-09-11 10:53:06 +0100
commite8715100cb2824fbd8ec724728a21fffdbcdb9f5 (patch)
treed86587e5962a3bb838eb20fe41940a5a2e3de8af /src
parente4627416b4be078a184372b9b0582517612a3c39 (diff)
downloadcoreutils-e8715100cb2824fbd8ec724728a21fffdbcdb9f5.tar.xz
doc: reference online info pages directly from man pages
* src/system.h (emit_ancillary_info): Add a direct reference to the corresponding online info documentation. Corresponding redirects were put in place on www.gnu.org to allow for concise links. * help2man: Adjust to add the "online help" link (and subsequent translation bugs link) to a "REPORTING BUGS" section. Also add the concise links for further information in --help to the "SEE ALSO" section, and dispense with the more verbose default for that.
Diffstat (limited to 'src')
-rw-r--r--src/system.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/system.h b/src/system.h
index 00180cb02..1682b3211 100644
--- a/src/system.h
+++ b/src/system.h
@@ -567,7 +567,10 @@ Otherwise, units default to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n\
static inline void
emit_ancillary_info (void)
{
+ char const * program = last_component (program_name);
+
printf (_("\n%s online help: <%s>\n"), PACKAGE_NAME, PACKAGE_URL);
+
/* Don't output this redundant message for English locales.
Note we still output for 'C' so that it gets included in the man page. */
const char *lc_messages = setlocale (LC_MESSAGES, NULL);
@@ -578,12 +581,12 @@ emit_ancillary_info (void)
the URLs at http://translationproject.org/team/. Otherwise, replace
the entire URL with your translation team's email address. */
printf (_("Report %s translation bugs to "
- "<http://translationproject.org/team/>\n"),
- last_component (program_name));
+ "<http://translationproject.org/team/>\n"), program);
}
- printf (_("For complete documentation, run: "
- "info '(coreutils) %s invocation'\n"),
- last_component (program_name));
+ printf (_("Full documentation at: <%s%s>\n"),
+ PACKAGE_URL, program);
+ printf (_("or available locally via: info '(coreutils) %s invocation'\n"),
+ program);
}
static inline void