If --lgpl is not specified, convert copyright headers to GPLv3+. v0.0
authorBruno Haible <bruno@clisp.org>
Mon, 29 Oct 2007 11:55:44 +0000 (12:55 +0100)
committerBruno Haible <bruno@clisp.org>
Mon, 29 Oct 2007 11:55:44 +0000 (12:55 +0100)
ChangeLog
gnulib-tool

index 18f5b2d..8ea2319 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2007-10-29  Bruno Haible  <bruno@clisp.org>
+
+       * gnulib-tool (func_import): When --lgpl is not specified, set
+       sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
+       GPLv3.
+       Reported by Simon Josefsson.
+
 2007-10-28  Bruno Haible  <bruno@clisp.org>
 
        * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
index 760d404..5d3a785 100755 (executable)
@@ -2279,6 +2279,13 @@ func_import ()
           ;;
         *) func_fatal_error "invalid value lgpl=$lgpl" ;;
       esac
+    else
+      # Update license.
+      sed_transform_lib_file=$sed_transform_lib_file'
+        s/GNU Lesser General/GNU General/g
+        s/GNU Library General/GNU General/g
+        s/version \(2\|2\.1\)\([ ,]\)/version 3\2/g
+      '
     fi
   fi