changeset 18474:1745af1e1b1d

Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'. * gnulib-tool (func_get_license): Special-case the 'parse-datetime' module.
author Bruno Haible <bruno@clisp.org>
date Sat, 15 Oct 2016 15:51:20 +0200
parents 87fe90eef934
children 3e3367ed246c
files ChangeLog gnulib-tool
diffstat 2 files changed, 21 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Mon Oct 17 02:16:57 2016 +0200
+++ b/ChangeLog	Sat Oct 15 15:51:20 2016 +0200
@@ -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.
--- a/gnulib-tool	Mon Oct 17 02:16:57 2016 +0200
+++ b/gnulib-tool	Sat Oct 15 15:51:20 2016 +0200
@@ -2570,11 +2570,21 @@
       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