summaryrefslogtreecommitdiff
path: root/lib/version-etc.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-05-31 23:13:38 -0400
committerJim Meyering <meyering@redhat.com>2009-06-03 18:38:07 +0200
commit6fa2870cb33c7793d30df2fc10ecdbe2a0772d3a (patch)
tree3bfec8e4af1ccb966054e76db82dc7ad143bda84 /lib/version-etc.c
parentb3ca674aa37a3cccb05cd14b1f67d100568790fb (diff)
downloadgnulib-6fa2870cb33c7793d30df2fc10ecdbe2a0772d3a.tar.gz
version-etc: extend for packagers
Add three new configure options, intended for packagers: --with-packager="packager name" --with-packager-version="packager-specific version" --with-packager-bug-reports="packager bug reporting" An example with coreutils: $ ./configure \ --with-packager=Gentoo \ --with-packager-bug-report=http://bugs.gentoo.org/ \ --with-packager-version="patchset 1.6" $ ./src/ls --version | head -n3 ls (GNU coreutils) 7.1-dirty Packaged by Gentoo (patchset 1.6) Copyright (C) 2009 Free Software Foundation, Inc. Note that the bug reporting info via --help doesn't show up because coreutils uses its own custom emit_bug_reporting_address() implementation in src/system.h. If it didn't, it'd look like: $ ./src/ls --help | tail -n4 Report bugs to <bug-coreutils@gnu.org>. Report Gentoo bugs to <http://bugs.gentoo.org/>. GNU coreutils home page: <http://www.gnu.org/software/coreutils/>. General help using GNU software: <http://www.gnu.org/gethelp/>. * lib/version-etc.c: Print new information, if provided. * m4/version-etc.m4: New file. * modules/version-etc (Files): Add m4/version-etc.m4. (configure.ac): Add gl_VERSION_ETC. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'lib/version-etc.c')
-rw-r--r--lib/version-etc.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/version-etc.c b/lib/version-etc.c
index 2258c2e21d..c3b028926b 100644
--- a/lib/version-etc.c
+++ b/lib/version-etc.c
@@ -59,6 +59,15 @@ version_etc_va (FILE *stream,
else
fprintf (stream, "%s %s\n", package, version);
+#ifdef PACKAGE_PACKAGER
+# ifdef PACKAGE_PACKAGER_VERSION
+ fprintf (stream, _("Packaged by %s (%s)\n"), PACKAGE_PACKAGER,
+ PACKAGE_PACKAGER_VERSION);
+# else
+ fprintf (stream, _("Packaged by %s\n"), PACKAGE_PACKAGER);
+# endif
+#endif
+
/* TRANSLATORS: Translate "(C)" to the copyright symbol
(C-in-a-circle), if this symbol is available in the user's
locale. Otherwise, do not translate "(C)"; leave it as-is. */
@@ -179,6 +188,10 @@ emit_bug_reporting_address (void)
"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);
+#ifdef PACKAGE_PACKAGER_BUG_REPORTS
+ printf (_("Report %s bugs to <%s>.\n"), PACKAGE_PACKAGER,
+ PACKAGE_PACKAGER_BUG_REPORTS);
+#endif
printf (_("%s home page: <http://www.gnu.org/software/%s/>.\n"),
PACKAGE_NAME, PACKAGE);
fputs (_("General help using GNU software: <http://www.gnu.org/gethelp/>.\n"),