From: Paul Eggert Date: Wed, 14 May 2025 20:36:40 +0000 (-0700) Subject: maint: --help now outputs bug reporting address X-Git-Tag: v9.8~324 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c8cbb321d9b904231dddad618120300f274a3109;p=thirdparty%2Fcoreutils.git maint: --help now outputs bug reporting address This changes the tail of "cat --help" output from: GNU coreutils online help: Full documentation or available locally via: info '(coreutils) cat invocation' to: Report bugs to: bug-coreutils@gnu.org GNU coreutils home page: General help using GNU software: Full documentation or available locally via: info '(coreutils) cat invocation' * src/system.h (emit_bug_reporting_address): Don’t #define. (emit_ancillary_info): Call emit_bug_reporting_address instead of doing it by hand, which omitted the bug reporting address. --- diff --git a/man/local.mk b/man/local.mk index ae74bf6ce1..9759eabce4 100644 --- a/man/local.mk +++ b/man/local.mk @@ -54,7 +54,7 @@ mandeps = # Depend on this to get version number changes. mandeps += .version -# This is required so that changes to e.g., emit_bug_reporting_address +# This is required so that changes to e.g., emit_ancillary_info # provoke regeneration of all the manpages. mandeps += $(top_srcdir)/src/system.h diff --git a/src/system.h b/src/system.h index 4a47e15cac..ca223d547e 100644 --- a/src/system.h +++ b/src/system.h @@ -333,9 +333,7 @@ enum #include "closein.h" #include "closeout.h" -#define emit_bug_reporting_address unused__emit_bug_reporting_address #include "version-etc.h" -#undef emit_bug_reporting_address #include "propername.h" /* Define away proper_name, since it's not worth the cost of adding ~17KB to @@ -651,14 +649,7 @@ emit_ancillary_info (char const *program) if (map_prog->node) node = map_prog->node; - printf (_("\n%s online help: <%s>\n"), PACKAGE_NAME, PACKAGE_URL); - -#ifdef PACKAGE_PACKAGER -# ifdef PACKAGE_PACKAGER_BUG_REPORTS - printf (_("Report %s bugs to: <%s>\n"), PACKAGE_PACKAGER, - PACKAGE_PACKAGER_BUG_REPORTS); -# endif -#endif + emit_bug_reporting_address (); /* Don't output this redundant message for English locales. Note we still output for 'C' so that it gets included in the man page. */