version-etc: Add emit_bug_reporting_address.
authorSimon Josefsson <simon@josefsson.org>
Fri, 23 Jan 2009 15:01:59 +0000 (16:01 +0100)
committerSimon Josefsson <simon@josefsson.org>
Fri, 23 Jan 2009 15:01:59 +0000 (16:01 +0100)
ChangeLog
lib/version-etc.c
lib/version-etc.h
modules/version-etc

index e5d72388cf3ae52080776deb5fa174882d37c85d..ca37425878d79edb6a6a215043134e828497f4d0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2009-01-23  Simon Josefsson  <simon@josefsson.org>
+
+       * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
+       GNU CoreUtils.
+       * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
+       * modules/version-etc (Description): Update.
+
 2009-01-22  Bruno Haible  <bruno@clisp.org>
 
        Cache the C locale object.
index 6ef1cca70cc8c932800ca2fd16d794815e72b354..0fe5d6c101be3b987350564992ae7d719b49c539 100644 (file)
@@ -1,4 +1,4 @@
-/* Utility to help print --version output in a consistent format.
+/* Print --version and bug-reporting information in a consistent format.
    Copyright (C) 1999-2009 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
@@ -170,3 +170,16 @@ version_etc (FILE *stream,
   va_start (authors, version);
   version_etc_va (stream, command_name, package, version, authors);
 }
+
+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"));
+}
index d9d1340eb587e12ea730428822e763353f46bae4..33a8e7f14352b4eabc54d66a407458c4c0806b58 100644 (file)
@@ -1,5 +1,5 @@
-/* Utility to help print --version output in a consistent format.
-   Copyright (C) 1999, 2003, 2005 Free Software Foundation, Inc.
+/* Print --version and bug-reporting information in a consistent format.
+   Copyright (C) 1999, 2003, 2005, 2009 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -31,6 +31,8 @@ extern void version_etc_va (FILE *stream,
 extern void version_etc (FILE *stream,
                         const char *command_name, const char *package,
                         const char *version,
-                        /* const char *author1, ...*/ ...);
+                        /* const char *author1, ...*/ ...);
+
+extern void emit_bug_reporting_address (void);
 
 #endif /* VERSION_ETC_H */
index 2b6d015f4cedb8a02115f24ac3c46e3a01977c4b..aac2311eb64d1fba9827f879f63f67a3a23b489a 100644 (file)
@@ -1,5 +1,5 @@
 Description:
-Print --version output.
+Print --version and bug-reporting information in a consistent format.
 
 Files:
 lib/version-etc.h