Mercurial > gnulib
diff gnulib-tool @ 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 | 5031955d34d3 |
children | 9012a151a519 |
line wrap: on
line diff
--- 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