From e8715100cb2824fbd8ec724728a21fffdbcdb9f5 Mon Sep 17 00:00:00 2001 From: Pádraig Brady
Date: Wed, 10 Sep 2014 11:53:50 +0100
Subject: 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.
---
src/system.h | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
(limited to 'src')
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 "
- "