From: Nikos Mavrogiannopoulos Date: Mon, 21 Nov 2016 20:15:25 +0000 (+0100) Subject: gnulib-tool: properly list the LGPL3orGPLv2 license X-Git-Tag: v1.0~6516 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=1aa6e23bd2487a7c3bd07cf693e6d968f74d951a;p=gnulib.git gnulib-tool: properly list the LGPL3orGPLv2 license * gnulib-tool (func_import): Adhere to the license guideline when rewriting the license text to "LGPLv3+ or GPLv2": https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages --- diff --git a/ChangeLog b/ChangeLog index 97fd1708dc..ebfa4670c0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2016-12-02 Nikos Mavrogiannopoulos + + * gnulib-tool (func_import): Adhere to the license guideline when + rewriting the license text to "LGPLv3+ or GPLv2": + https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages + 2016-12-02 Bruno Haible localcharset: Avoid theoretical buffer overrun. diff --git a/gnulib-tool b/gnulib-tool index 5145d47bdf..374e4236e8 100755 --- a/gnulib-tool +++ b/gnulib-tool @@ -4758,13 +4758,32 @@ s,^\(.................................................[^ ]*\) *, if test -n "$lgpl"; then # Update license. case "$lgpl" in - yes | 3 | 3orGPLv2) + yes | 3) sed_transform_main_lib_file=$sed_transform_main_lib_file' s/GNU General/GNU Lesser General/g s/General Public License/Lesser General Public License/g s/Lesser Lesser General Public License/Lesser General Public License/g ' ;; + 3orGPLv2) + sed_transform_main_lib_file=$sed_transform_main_lib_file' + /under the terms of /,/(at your option) any later version/d + /you can redistribute it and\/or modify it/a\ + under the terms of either:\ +\ + * the GNU Lesser General Public License as published by the Free\ + Software Foundation; either version 3 of the License, or (at your\ + option) any later version.\ +\ + or\ +\ + * the GNU General Public License as published by the Free\ + Software Foundation; either version 2 of the License, or (at your\ + option) any later version.\ +\ + or both in parallel, as here. + ' + ;; 2) sed_transform_main_lib_file=$sed_transform_main_lib_file' s/GNU General/GNU Lesser General/g