[Top][All Lists]
[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:19:21 +0100 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux) |
Here it is. The module name and source filenames are rather long, but I
couldn't think of anything better. Untested, beware!
/Simon
>From 52901a4bf1eb6dbbac9aa5a8676e120da3d3c134 Mon Sep 17 00:00:00 2001
From: Simon Josefsson <address@hidden>
Date: Thu, 22 Jan 2009 10:18:33 +0100
Subject: [PATCH] Add new module emit-bug-reporting-address.
---
MODULES.html.sh | 3 +-
lib/emit-bug-reporting-address.c | 42 ++++++++++++++++++++++++++++++++++++
lib/emit-bug-reporting-address.h | 24 ++++++++++++++++++++
modules/emit-bug-reporting-address | 23 +++++++++++++++++++
4 files changed, 91 insertions(+), 1 deletions(-)
create mode 100644 lib/emit-bug-reporting-address.c
create mode 100644 lib/emit-bug-reporting-address.h
create mode 100644 modules/emit-bug-reporting-address
diff --git a/MODULES.html.sh b/MODULES.html.sh
index 0154242..f7987b4 100755
--- a/MODULES.html.sh
+++ b/MODULES.html.sh
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# Copyright (C) 2002-2008 Free Software Foundation, Inc.
+# Copyright (C) 2002-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
@@ -1867,6 +1867,7 @@ func_all_modules ()
func_begin_table
func_module argmatch
+ func_module emit-bug-reporting-address
func_module version-etc
func_module version-etc-fsf
func_module long-options
diff --git a/lib/emit-bug-reporting-address.c b/lib/emit-bug-reporting-address.c
new file mode 100644
index 0000000..4265ddd
--- /dev/null
+++ b/lib/emit-bug-reporting-address.c
@@ -0,0 +1,42 @@
+/* Utility to help print bug reporting information in a consistent format.
+ Copyright (C) 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
+ the Free Software Foundation; either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>. */
+
+/* Written by Simon Josefsson influenced by GNU CoreUtils. */
+
+#include <config.h>
+
+/* Specification. */
+#include "emit-bug-reporting-address.h"
+
+#include <stdarg.h>
+#include <stdio.h>
+#include <stdlib.h>
+
+#include "gettext.h"
+#define _(msgid) gettext (msgid)
+
+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"));
+}
diff --git a/lib/emit-bug-reporting-address.h b/lib/emit-bug-reporting-address.h
new file mode 100644
index 0000000..3b9323d
--- /dev/null
+++ b/lib/emit-bug-reporting-address.h
@@ -0,0 +1,24 @@
+/* Utility to help print bug reporting information in a consistent format.
+ Copyright (C) 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
+ the Free Software Foundation; either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>. */
+
+/* Written by Simon Josefsson influenced by GNU CoreUtils. */
+
+#ifndef EMIT_BUG_REPORTING_ADDRESS_H
+# define EMIT_BUG_REPORTING_ADDRESS_H
+
+extern void emit_bug_reporting_address (void);
+
+#endif /* EMIT_BUG_REPORTING_ADDRESS_H */
diff --git a/modules/emit-bug-reporting-address
b/modules/emit-bug-reporting-address
new file mode 100644
index 0000000..91f24b2
--- /dev/null
+++ b/modules/emit-bug-reporting-address
@@ -0,0 +1,23 @@
+Description:
+Print bug reporting information in a consistent format.
+
+Files:
+lib/emit-bug-reporting-address.h
+lib/emit-bug-reporting-address.c
+
+Depends-on:
+gettext-h
+
+configure.ac:
+
+Makefile.am:
+lib_SOURCES += emit-bug-reporting-address.h emit-bug-reporting-address.c
+
+Include:
+"emit-bug-reporting-address.h"
+
+License:
+GPL
+
+Maintainer:
+Simon Josefsson
--
1.5.6.5
Re: [gnu-prog-discuss] url's in --help output, Ludovic Courtès, 2009/01/22