From ff9debcf75301805b1db925cdcdfb248541c576d Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 15 Oct 2016 15:51:20 +0200 Subject: [PATCH] Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'. * gnulib-tool (func_get_license): Special-case the 'parse-datetime' module. --- ChangeLog | 6 ++++++ gnulib-tool | 20 +++++++++++++++----- 2 files changed, 21 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index fc272a69e9..cf20d69c16 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2016-10-15 Bruno Haible + + 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 system-quote tests: Avoid compiler warning on AIX. diff --git a/gnulib-tool b/gnulib-tool index 7f81951bc8..666057aead 100755 --- a/gnulib-tool +++ b/gnulib-tool @@ -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 -- 2.39.5