]> Savannah Git Hosting - gnulib.git/commit
gnulib-tool.py: Finish implementing option --conditional-dependencies.
authorBruno Haible <bruno@clisp.org>
Tue, 9 Aug 2022 22:51:59 +0000 (00:51 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 9 Aug 2022 22:53:44 +0000 (00:53 +0200)
commit62fa8fc7b2c9db14d8c24d6ec5beedecb27b4802
treea9a6b6b66960a69c00ed74aaca0e18b63d7438a1
parentbc3d94bb2df6fa0c766f6226814c2fc2a55ee049
gnulib-tool.py: Finish implementing option --conditional-dependencies.

* gnulib-tool.py (main) Accept options --conditional-dependencies,
--no-conditional-dependencies.
* pygnulib/GLModuleSystem.py (GLModuleTable.addConditional): Use
str(module), not module, as key. Fix logic bug.
(GLModuleTable.getCondition): Simplify.
(GLModuleTable.transitive_closure): Show a warning when there are
duplicate dependencies. Fix logic bug.
(GLModuleTable.transitive_closure_separately): Simplify.
(GLModuleTable.add_dummy): Ignore tests modules. Cope with multiple
lib_SOURCES augmentation lines. Cope with comments at the end of a
lib_SOURCES augmentation line. Add the dummy module at the end of the
modules list.
* pygnulib/GLTestDir.py (GLTestDir.execute): Remove the code that forces
the dummy module to the end of the list.
* pygnulib/GLEmiter.py (GLEmiter.autoconfSnippets): Add code to
terminate the shell functions. Add code for the dependencies from the
unconditional to the conditional modules. Don't emit AM_CONDITIONAL for
unconditional modules.
ChangeLog
gnulib-tool.py
gnulib-tool.py.TODO
pygnulib/GLEmiter.py
pygnulib/GLImport.py
pygnulib/GLModuleSystem.py
pygnulib/GLTestDir.py