* MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 21 Jan 2005 00:24:52 +0000 (00:24 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 21 Jan 2005 00:24:52 +0000 (00:24 +0000)
* modules/version-etc-fsf: New file.
* lib/version-etc-fsf.c: New file, with version_etc_copyright.
* lib/version-etc.c: Remove version_etc_copyright.
* lib/version-etc.h (version_etc_copyright): Use [] instead of * in
prototype.

ChangeLog
MODULES.html.sh
lib/ChangeLog
lib/version-etc-fsf.c [new file with mode: 0644]
lib/version-etc.c
lib/version-etc.h
modules/version-etc-fsf [new file with mode: 0644]

index 6c7418c..e0768c1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
+
+2005-01-20  Simon Josefsson  <jas@extundo.com>
+
+       * modules/version-etc-fsf: New file.
+
 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
 
         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
index 5334321..c6b29c3 100755 (executable)
@@ -1584,6 +1584,7 @@ func_all_modules ()
   func_begin_table
   func_module argmatch
   func_module version-etc
+  func_module version-etc-fsf
   func_module long-options
   func_end_table
 
index c161814..8f7c818 100644 (file)
@@ -1,3 +1,10 @@
+2005-01-20  Simon Josefsson  <jas@extundo.com>
+
+       * version-etc-fsf.c: New file, with version_etc_copyright.
+       * version-etc.c: Remove version_etc_copyright.
+       * version-etc.h (version_etc_copyright): Use [] instead of * in
+       prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
+
 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
 
        * save-cwd.c (save_cwd): Remove code to support the case
diff --git a/lib/version-etc-fsf.c b/lib/version-etc-fsf.c
new file mode 100644 (file)
index 0000000..289ce45
--- /dev/null
@@ -0,0 +1,31 @@
+/* Variable with FSF copyright information, for version-etc.
+   Copyright (C) 1999-2005 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 2, 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, write to the Free Software Foundation,
+   Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
+
+/* Written by Jim Meyering. */
+
+#if HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+/* Specification.  */
+#include "version-etc.h"
+
+/* Default copyright goes to the FSF. */
+
+const char version_etc_copyright[] =
+  /* Do *not* mark this string for translation.  */
+  "Copyright (C) 2005 Free Software Foundation, Inc.";
index 95b7e40..ac5844c 100644 (file)
 #include "gettext.h"
 #define _(msgid) gettext (msgid)
 
-/* Default copyright goes to the FSF. */
-
-const char* version_etc_copyright =
-  /* Do *not* mark this string for translation.  */
-  "Copyright (C) 2005 Free Software Foundation, Inc.";
-
-
 /* Like version_etc, below, but with the NULL-terminated author list
    provided via a variable of type va_list.  */
 void
index d505e75..f1acb65 100644 (file)
@@ -1,5 +1,5 @@
 /* Utility to help print --version output in a consistent format.
-   Copyright (C) 1999, 2003 Free Software Foundation, Inc.
+   Copyright (C) 1999, 2003, 2005 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
@@ -23,7 +23,7 @@
 # include <stdarg.h>
 # include <stdio.h>
 
-extern const char *version_etc_copyright;
+extern const char version_etc_copyright[];
 
 extern void version_etc_va (FILE *stream,
                            const char *command_name, const char *package,
diff --git a/modules/version-etc-fsf b/modules/version-etc-fsf
new file mode 100644 (file)
index 0000000..698d41a
--- /dev/null
@@ -0,0 +1,21 @@
+Description:
+Copyright variable for FSF projects
+
+Files:
+lib/version-etc-fsf.c
+
+Depends-on:
+version-etc
+
+configure.ac:
+
+Makefile.am:
+lib_SOURCES += version-etc-fsf.c
+
+Include:
+
+License:
+GPL
+
+Maintainer:
+Jim Meyering