]> Savannah Git Hosting - gnulib.git/commitdiff
gnulib-tool: fix the previous change
authorDaiki Ueno <ueno@gnu.org>
Fri, 2 Dec 2016 16:16:50 +0000 (17:16 +0100)
committerDaiki Ueno <ueno@gnu.org>
Fri, 2 Dec 2016 16:16:50 +0000 (17:16 +0100)
* gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
GPLv2" rewriting.

ChangeLog
gnulib-tool

index d01c5edc57e07fda933975317e33fdb9fd286ba4..c8da20c64f92267cf5da4d8208b57da083d7b42b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,7 @@
 2016-12-02  Daiki Ueno  <ueno@gnu.org>
 
-       * gnulib-tool (func_import): Relax the regex for the end marker of
-       original license text.
+       * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
+       GPLv2" rewriting.
 
 2016-12-02  Nikos Mavrogiannopoulos <nmav@gnutls.org>
 
index b20539486e025632982cd038edbbcd0fca78b2ad..6d22c217fc3ee25f8d206090ac4be39b28f68160 100755 (executable)
@@ -4767,9 +4767,9 @@ s,^\(.................................................[^ ]*\) *,
           ;;
         3orGPLv2)
           sed_transform_main_lib_file=$sed_transform_main_lib_file'
-            /under the terms of /,/any later version/d
-            /you can redistribute it and\/or modify it/a\
-   under the terms of either:\
+            /^ *This program is free software/i\
+   This program is free software: you can redistribute it and\/or\
+   modify it 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\
@@ -4782,6 +4782,7 @@ s,^\(.................................................[^ ]*\) *,
        option) any later version.\
 \
    or both in parallel, as here.
+            /^ *This program is free software/,/^$/d
           '
           ;;
         2)