]> Savannah Git Hosting - gnulib.git/commit
gnulib-tool.py: Allow verifying license compatibility with GPLv2+.
authorBruno Haible <bruno@clisp.org>
Thu, 29 Aug 2024 16:32:35 +0000 (18:32 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 29 Aug 2024 16:32:35 +0000 (18:32 +0200)
commit7b6f844bf2855d101852b54b8258522fb7cb9dcb
treef750b2194158428d508a51981e1ae51c27d4f2d4
parentdbb15bde4bd1542bdc7da7a1a93a9fc420091be8
gnulib-tool.py: Allow verifying license compatibility with GPLv2+.

* pygnulib/GLInfo.py (GLInfo.usage): Document the --gpl option.
* pygnulib/main.py (main): Accept a --gpl option. Pass it to the
GLConfig.
* pygnulib/GLConfig.py (GLConfig): Add 'gpl' field and constructor
argument. Add getGPL, setGPL, resetGPL methods.
* m4/gnulib-tool.m4 (gl_GPL): New macro.
* doc/gnulib-tool.texi (Modified imports): Document the gl_GPL macro.
* pygnulib/GLImport.py (GLImport.__init__): Look for gl_GPL invocations
in gnulib-cache.m4.
(GLImport.actioncmd): Output --gpl option when option --gpl was given.
(GLImport.gnulib_cache): Emit a gl_GPL invocation when option --gpl was
given.
(GLImport.prepare): Do license compatibility checking when option --gpl
was given.
* pygnulib/GLModuleSystem.py: Update a comment.
ChangeLog
doc/gnulib-tool.texi
m4/gnulib-tool.m4
pygnulib/GLConfig.py
pygnulib/GLImport.py
pygnulib/GLInfo.py
pygnulib/GLModuleSystem.py
pygnulib/main.py