bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gnu-prog-discuss] url's in --help output


From: Simon Josefsson
Subject: Re: [gnu-prog-discuss] url's in --help output
Date: Thu, 22 Jan 2009 10:10:52 +0100
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux)

address@hidden (Ludovic Courtès) writes:

> Hi,
>
> Eric Blake <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]