Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
authorBruno Haible <bruno@clisp.org>
Sat, 15 Oct 2016 13:51:20 +0000 (15:51 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 22 Oct 2016 17:39:33 +0000 (19:39 +0200)
* gnulib-tool (func_get_license): Special-case the 'parse-datetime'
module.

ChangeLog
gnulib-tool

index fc272a69e9d92fa38638896db64270f766a034ca..cf20d69c16cb7918ad3ebc05dac0d0e200bc1f7c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2016-10-15  Bruno Haible  <bruno@clisp.org>
+
+       Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
+       * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
+       module.
+
 2016-10-16  Bruno Haible  <bruno@clisp.org>
 
        system-quote tests: Avoid compiler warning on AIX.
index 7f81951bc8aab1aad0acc10bcca81c21675fb5c2..666057aead2be1fb3a87f2f4f0f9677252319d61 100755 (executable)
@@ -2570,11 +2570,21 @@ func_get_license ()
       fi
       ;;
   esac
-  {
-    func_get_license_raw "$1"
-    # The default is GPL.
-    echo "GPL"
-  } | sed -e 's,^ *$,,' | sed -e 1q
+  case "$1" in
+    parse-datetime )
+      # These modules are under a weaker license only for the purpose of some
+      # users who hand-edit it and don't use gnulib-tool. For the regular
+      # gnulib users they are under a stricter license.
+      echo "GPL"
+      ;;
+    * )
+      {
+        func_get_license_raw "$1"
+        # The default is GPL.
+        echo "GPL"
+      } | sed -e 's,^ *$,,' | sed -e 1q
+      ;;
+  esac
 }
 
 # func_get_maintainer module