Commit 5143f4e9 authored by Bruno Haible's avatar Bruno Haible

Add a license tag to every module.

parent c22ddf54
2004-09-22 Bruno Haible <bruno@clisp.org>
* modules/*: Add 'License' field.
* gnulib-tool: Accept --extract-license option.
(func_get_license): New function.
2004-09-21 Bruno Haible <bruno@clisp.org> 2004-09-21 Bruno Haible <bruno@clisp.org>
* modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4. * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
progname=$0 progname=$0
package=gnulib package=gnulib
cvsdatestamp='$Date: 2004-09-21 14:22:48 $' cvsdatestamp='$Date: 2004-09-22 15:11:04 $'
last_checkin_date=`echo "$cvsdatestamp" | sed -e 's,^\$[D]ate: ,,'` last_checkin_date=`echo "$cvsdatestamp" | sed -e 's,^\$[D]ate: ,,'`
version=`echo "$last_checkin_date" | sed -e 's/ .*$//' -e 's,/,-,g'` version=`echo "$last_checkin_date" | sed -e 's/ .*$//' -e 's,/,-,g'`
...@@ -54,6 +54,7 @@ Usage: gnulib-tool --list ...@@ -54,6 +54,7 @@ Usage: gnulib-tool --list
gnulib-tool --extract-autoconf-snippet module gnulib-tool --extract-autoconf-snippet module
gnulib-tool --extract-automake-snippet module gnulib-tool --extract-automake-snippet module
gnulib-tool --extract-include-directive module gnulib-tool --extract-include-directive module
gnulib-tool --extract-license module
gnulib-tool --extract-maintainer module gnulib-tool --extract-maintainer module
Operation modes: Operation modes:
...@@ -72,6 +73,8 @@ Operation modes: ...@@ -72,6 +73,8 @@ Operation modes:
--extract-autoconf-snippet extract the snippet for configure.ac --extract-autoconf-snippet extract the snippet for configure.ac
--extract-automake-snippet extract the snippet for lib/Makefile.am --extract-automake-snippet extract the snippet for lib/Makefile.am
--extract-include-directive extract the #include directive --extract-include-directive extract the #include directive
--extract-license report the license terms of the source files
under lib/
--extract-maintainer report the maintainer(s) inside gnulib --extract-maintainer report the maintainer(s) inside gnulib
Options: Options:
...@@ -285,6 +288,7 @@ sed_extract_prog=':[ ]*$/ { ...@@ -285,6 +288,7 @@ sed_extract_prog=':[ ]*$/ {
s/^configure\.ac:[ ]*$// s/^configure\.ac:[ ]*$//
s/^Makefile\.am:[ ]*$// s/^Makefile\.am:[ ]*$//
s/^Include:[ ]*$// s/^Include:[ ]*$//
s/^License:[ ]*$//
s/^Maintainer:[ ]*$// s/^Maintainer:[ ]*$//
tb tb
p p
...@@ -331,6 +335,12 @@ func_get_include_directive () ...@@ -331,6 +335,12 @@ func_get_include_directive ()
sed -e 's/^\(["<]\)/#include \1/' sed -e 's/^\(["<]\)/#include \1/'
} }
# func_get_license module
func_get_license ()
{
sed -n -e "/^License$sed_extract_prog" < "$gnulib_dir/modules/$1"
}
# func_get_maintainer module # func_get_maintainer module
func_get_maintainer () func_get_maintainer ()
{ {
...@@ -928,6 +938,16 @@ case $mode in ...@@ -928,6 +938,16 @@ case $mode in
done done
;; ;;
extract-license )
for module
do
func_verify_module
if test -n "$module"; then
func_get_license "$module"
fi
done
;;
extract-maintainer ) extract-maintainer )
for module for module
do do
......
...@@ -10,5 +10,8 @@ Makefile.am: ...@@ -10,5 +10,8 @@ Makefile.am:
Include: Include:
License:
GPL
Maintainer: Maintainer:
...@@ -17,6 +17,9 @@ lib_SOURCES += acl.h acl.c ...@@ -17,6 +17,9 @@ lib_SOURCES += acl.h acl.c
Include: Include:
"acl.h" "acl.h"
License:
GPL
Maintainer: Maintainer:
Paul Eggert, Jim Meyering Paul Eggert, Jim Meyering
...@@ -26,5 +26,8 @@ MOSTLYCLEANFILES += alloca.h alloca.h-t ...@@ -26,5 +26,8 @@ MOSTLYCLEANFILES += alloca.h alloca.h-t
Include: Include:
#include <alloca.h> #include <alloca.h>
License:
GPL
Maintainer: Maintainer:
bug-gnulib@gnu.org bug-gnulib@gnu.org
...@@ -21,5 +21,8 @@ lib_SOURCES += allocsa.h allocsa.c ...@@ -21,5 +21,8 @@ lib_SOURCES += allocsa.h allocsa.c
Include: Include:
#include "allocsa.h" #include "allocsa.h"
License:
GPL
Maintainer: Maintainer:
Bruno Haible Bruno Haible
...@@ -22,6 +22,9 @@ lib_SOURCES += argmatch.h argmatch.c ...@@ -22,6 +22,9 @@ lib_SOURCES += argmatch.h argmatch.c
Include: Include:
"argmatch.h" "argmatch.h"
License:
GPL
Maintainer: Maintainer:
all all
...@@ -39,6 +39,9 @@ lib_SOURCES += argp.h argp-ba.c argp-eexst.c \ ...@@ -39,6 +39,9 @@ lib_SOURCES += argp.h argp-ba.c argp-eexst.c \
Include: Include:
"argp.h" "argp.h"
License:
LGPL
Maintainer: Maintainer:
Simon Josefsson, glibc Simon Josefsson, glibc
...@@ -26,5 +26,8 @@ MOSTLYCLEANFILES += argz.h argz.h-t ...@@ -26,5 +26,8 @@ MOSTLYCLEANFILES += argz.h argz.h-t
Include: Include:
<argz.h> <argz.h>
License:
GPL
Maintainer: Maintainer:
bug-libtool@gnu.org bug-libtool@gnu.org
...@@ -14,6 +14,9 @@ Makefile.am: ...@@ -14,6 +14,9 @@ Makefile.am:
Include: Include:
<assert.h> <assert.h>
License:
GPL
Maintainer: Maintainer:
Jim Meyering Jim Meyering
...@@ -15,6 +15,9 @@ Makefile.am: ...@@ -15,6 +15,9 @@ Makefile.am:
Include: Include:
<stdlib.h> <stdlib.h>
License:
GPL
Maintainer: Maintainer:
Jim Meyering Jim Meyering
...@@ -22,6 +22,9 @@ lib_SOURCES += backupfile.h backupfile.c ...@@ -22,6 +22,9 @@ lib_SOURCES += backupfile.h backupfile.c
Include: Include:
"backupfile.h" "backupfile.h"
License:
GPL
Maintainer: Maintainer:
Paul Eggert, Jim Meyering Paul Eggert, Jim Meyering
...@@ -13,5 +13,8 @@ Makefile.am: ...@@ -13,5 +13,8 @@ Makefile.am:
Include: Include:
License:
GPL
Maintainer: Maintainer:
...@@ -14,6 +14,9 @@ lib_SOURCES += binary-io.h ...@@ -14,6 +14,9 @@ lib_SOURCES += binary-io.h
Include: Include:
"binary-io.h" "binary-io.h"
License:
GPL
Maintainer: Maintainer:
Bruno Haible Bruno Haible
...@@ -13,6 +13,9 @@ Makefile.am: ...@@ -13,6 +13,9 @@ Makefile.am:
Include: Include:
License:
GPL
Maintainer: Maintainer:
Paul Eggert Paul Eggert
...@@ -16,6 +16,9 @@ lib_SOURCES += c-ctype.h c-ctype.c ...@@ -16,6 +16,9 @@ lib_SOURCES += c-ctype.h c-ctype.c
Include: Include:
"c-ctype.h" "c-ctype.h"
License:
GPL
Maintainer: Maintainer:
Bruno Haible Bruno Haible
...@@ -19,6 +19,9 @@ lib_SOURCES += c-stack.h c-stack.c ...@@ -19,6 +19,9 @@ lib_SOURCES += c-stack.h c-stack.c
Include: Include:
"c-stack.h" "c-stack.h"
License:
GPL
Maintainer: Maintainer:
Paul Eggert Paul Eggert
...@@ -18,6 +18,9 @@ lib_SOURCES += c-strtod.h c-strtod.c ...@@ -18,6 +18,9 @@ lib_SOURCES += c-strtod.h c-strtod.c
Include: Include:
"c-strtod.h" "c-strtod.h"
License:
GPL
Maintainer: Maintainer:
Paul Eggert, Jim Meyering Paul Eggert, Jim Meyering
...@@ -19,6 +19,9 @@ lib_SOURCES += c-strtod.h c-strtod.c c-strtold.c ...@@ -19,6 +19,9 @@ lib_SOURCES += c-strtod.h c-strtod.c c-strtold.c
Include: Include:
"c-strtod.h" "c-strtod.h"
License:
GPL
Maintainer: Maintainer:
Paul Eggert, Jim Meyering Paul Eggert, Jim Meyering
...@@ -15,5 +15,8 @@ Makefile.am: ...@@ -15,5 +15,8 @@ Makefile.am:
Include: Include:
<stdlib.h> <stdlib.h>
License:
GPL
Maintainer: Maintainer:
Jim Meyering Jim Meyering
...@@ -16,6 +16,9 @@ lib_SOURCES += canon-host.c ...@@ -16,6 +16,9 @@ lib_SOURCES += canon-host.c
Include: Include:
License:
GPL
Maintainer: Maintainer:
Jim Meyering Jim Meyering
...@@ -22,6 +22,9 @@ lib_SOURCES += canonicalize.h canonicalize.c stat-macros.h ...@@ -22,6 +22,9 @@ lib_SOURCES += canonicalize.h canonicalize.c stat-macros.h
Include: Include:
"canonicalize.h" "canonicalize.h"
License:
GPL
Maintainer: Maintainer:
Jim Meyering Jim Meyering
...@@ -16,6 +16,9 @@ Makefile.am: ...@@ -16,6 +16,9 @@ Makefile.am:
Include: Include:
<unistd.h> <unistd.h>
License:
GPL
Maintainer: Maintainer:
Jim Meyering Jim Meyering
...@@ -18,5 +18,8 @@ lib_SOURCES += cloexec.c cloexec.h ...@@ -18,5 +18,8 @@ lib_SOURCES += cloexec.c cloexec.h
Include: Include:
"cloexec.h" "cloexec.h"
License:
GPL
Maintainer: Maintainer:
Jim Meyering Jim Meyering
...@@ -23,5 +23,8 @@ lib_SOURCES += closeout.h closeout.c ...@@ -23,5 +23,8 @@ lib_SOURCES += closeout.h closeout.c
Include: Include:
"closeout.h" "closeout.h"
License:
GPL
Maintainer: Maintainer:
Jim Meyering Jim Meyering
...@@ -23,6 +23,9 @@ lib_SOURCES += copy-file.h copy-file.c ...@@ -23,6 +23,9 @@ lib_SOURCES += copy-file.h copy-file.c
Include: Include:
"copy-file.h" "copy-file.h"
License:
GPL
Maintainer: Maintainer:
Bruno Haible Bruno Haible
...@@ -16,6 +16,9 @@ lib_SOURCES += cycle-check.c cycle-check.h dev-ino.h ...@@ -16,6 +16,9 @@ lib_SOURCES += cycle-check.c cycle-check.h dev-ino.h
Include: Include:
"cycle-check.h" "cycle-check.h"
License:
GPL
Maintainer: Maintainer:
Jim Meyering Jim Meyering
...@@ -15,6 +15,9 @@ lib_SOURCES += diacrit.h diacrit.c ...@@ -15,6 +15,9 @@ lib_SOURCES += diacrit.h diacrit.c
Include: Include:
"diacrit.h" "diacrit.h"
License:
GPL
Maintainer: Maintainer:
Jim Meyering Jim Meyering
...@@ -17,5 +17,8 @@ lib_SOURCES += dirfd.h ...@@ -17,5 +17,8 @@ lib_SOURCES += dirfd.h
Include: Include:
"dirfd.h" "dirfd.h"
License:
GPL
Maintainer: Maintainer:
Jim Meyering Jim Meyering
...@@ -21,6 +21,9 @@ lib_SOURCES += dirname.h dirname.c basename.c stripslash.c ...@@ -21,6 +21,9 @@ lib_SOURCES += dirname.h dirname.c basename.c stripslash.c
Include: Include:
"dirname.h" "dirname.h"
License:
GPL
Maintainer: Maintainer:
Jim Meyering Jim Meyering
...@@ -13,5 +13,8 @@ lib_SOURCES += dummy.c ...@@ -13,5 +13,8 @@ lib_SOURCES += dummy.c
Include: Include:
License:
GPL
Maintainer: Maintainer:
all all
...@@ -15,6 +15,9 @@ Makefile.am: ...@@ -15,6 +15,9 @@ Makefile.am:
Include: Include:
<unistd.h> <unistd.h>
License:
GPL
Maintainer: Maintainer:
Paul Eggert, Jim Meyering Paul Eggert, Jim Meyering
...@@ -16,5 +16,8 @@ EXTRA_DIST += eealloc.h ...@@ -16,5 +16,8 @@ EXTRA_DIST += eealloc.h
Include: Include:
#include <eealloc.h> #include <eealloc.h>
License:
GPL
Maintainer: Maintainer:
Bruno Haible Bruno Haible
...@@ -19,6 +19,9 @@ Makefile.am: ...@@ -19,6 +19,9 @@ Makefile.am:
Include: Include:
"error.h" "error.h"
License:
LGPL
Maintainer: Maintainer:
all, glibc all, glibc
...@@ -19,6 +19,9 @@ lib_SOURCES += euidaccess.h stat-macros.h ...@@ -19,6 +19,9 @@ lib_SOURCES += euidaccess.h stat-macros.h
Include: Include:
"euidaccess.h" "euidaccess.h"
License:
LGPL
Maintainer: Maintainer:
Jim Meyering, glibc Jim Meyering, glibc
...@@ -22,6 +22,9 @@ lib_SOURCES += exclude.h exclude.c ...@@ -22,6 +22,9 @@ lib_SOURCES += exclude.h exclude.c
Include: Include:
"exclude.h" "exclude.h"
License:
GPL
Maintainer: Maintainer:
Paul Eggert Paul Eggert
...@@ -25,6 +25,9 @@ lib_SOURCES += execute.h execute.c w32spawn.h ...@@ -25,6 +25,9 @@ lib_SOURCES += execute.h execute.c w32spawn.h
Include: Include:
"execute.h" "execute.h"
License:
GPL
Maintainer: Maintainer:
Bruno Haible Bruno Haible
...@@ -14,6 +14,9 @@ lib_SOURCES += exit.h ...@@ -14,6 +14,9 @@ lib_SOURCES += exit.h
Include: Include:
"exit.h" "exit.h"
License:
GPL
Maintainer: Maintainer:
Bruno Haible Bruno Haible
...@@ -18,6 +18,9 @@ lib_SOURCES += exitfail.h exitfail.c ...@@ -18,6 +18,9 @@ lib_SOURCES += exitfail.h exitfail.c
Include: Include:
"exitfail.h" "exitfail.h"
License:
GPL
Maintainer: Maintainer:
Paul Eggert Paul Eggert
...@@ -13,6 +13,9 @@ Makefile.am: ...@@ -13,6 +13,9 @@ Makefile.am:
Include: Include:
License:
GPL
Maintainer: Maintainer:
Paul Eggert and Jim Meyering Paul Eggert and Jim Meyering
...@@ -21,6 +21,9 @@ lib_SOURCES += fatal-signal.h fatal-signal.c ...@@ -21,6 +21,9 @@ lib_SOURCES += fatal-signal.h fatal-signal.c
Include: Include:
"fatal-signal.h" "fatal-signal.h"
License:
GPL
Maintainer: Maintainer:
Bruno Haible Bruno Haible
...@@ -18,6 +18,9 @@ lib_SOURCES += fcntl-safer.h open-safer.c ...@@ -18,6 +18,9 @@ lib_SOURCES += fcntl-safer.h open-safer.c
Include: Include:
"fcntl-safer.h" "fcntl-safer.h"
License:
GPL
Maintainer: Maintainer:
Paul Eggert, Jim Meyering Paul Eggert, Jim Meyering
...@@ -19,6 +19,9 @@ lib_SOURCES += file-type.h file-type.c stat-macros.h ...@@ -19,6 +19,9 @@ lib_SOURCES += file-type.h file-type.c stat-macros.h
Include: Include:
"file-type.h" "file-type.h"
License:
GPL
Maintainer: Maintainer:
Paul Eggert, Jim Meyering Paul Eggert, Jim Meyering
...@@ -14,6 +14,9 @@ Makefile.am: ...@@ -14,6 +14,9 @@ Makefile.am:
Include: Include: