[email protected] (Ludovic Courtès) writes:
> Hi,
>
> Eric Blake <[email protected]> writes:
>
>> Would it help if autoconf were taught to make the package homepage into an
>> automatic C preprocessor macro by providing it as an optional argument of
>> AC_INIT, similar to other variables like PACKAGE_NAME, PACKAGE_TARNAME?
>
> Presumably, Gnulib's `version-etc-fsf' could assume
> "http://www.gnu.org/software/" PACKAGE_NAME as the URL, right?
The version-etc module doesn't provide the 'Report bugs to...' messages,
unfortunately.
I suggest a new gnulib module emit-bug-reporting-address. I have the
following code in GNU Libidn, which is strongly influenced by GNU
CoreUtils. Removing the 'static' keyword and putting it in a gnulib
module would make it easy to re-use the code, and possibly also the
translation messages. I would use it in several of my projects.
Thoughts? I'll propose a patch shortly.
static void
emit_bug_reporting_address (void)
{
/* TRANSLATORS: The placeholder indicates the bug-reporting address
for this package. Please add _another line_ saying
"Report translation bugs to <...>\n" with the address for translation
bugs (typically your translation team's web or email address). */
printf (_("\nReport bugs to <%s>.\n"), PACKAGE_BUGREPORT);
printf (_("%s home page: http://www.gnu.org/software/%s/\n"),
PACKAGE_NAME, PACKAGE);
printf (_("General help using GNU software: http://www.gnu.org/gethelp/\n"));
}
/Simon