]> Savannah Git Hosting - gnulib.git/commit
gnulib-tool.py: Fix some code generation details.
authorBruno Haible <bruno@clisp.org>
Tue, 9 Aug 2022 14:11:09 +0000 (16:11 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 9 Aug 2022 21:19:56 +0000 (23:19 +0200)
commit98e7ca354a1108b0b99236e29bedbc6bfbd8593e
tree7cddc27a5aca8e58d38ff3a22eebb7b3f3d8e10e
parent501feeb5d595d8b4cea9a1a8e404277c27d2f5bf
gnulib-tool.py: Fix some code generation details.

* pygnulib/GLEmiter.py (GLEmiter.lib_Makefile_am): When removing a
lib_LDFLAGS line, remove also the newline. Fix regex that matches
lib_SOMETHING. Add a newline after each '## begin gnulib module' line.
Don't emit 'endif' lines without corresponding 'if'. When emitting a
'+=' augmentation, make sure it does not get emitted a second time.
Don't emit a blank line when there is no AM_CPPFLAGS augmentation.
Update after getLink() changed. In the value of DEFAULT_TEXT_DOMAIN,
backslash-escape the double-quotes. Don't produce Windows CR-LFs on
Windows. Simplify.
(GLEmiter.tests_Makefile_am): When removing a lib_LDFLAGS line, remove
also the newline. Fix regex that matches lib_SOMETHING. Don't remove a
blank line before EXTRA_DIST. Add a newline after each
'## begin gnulib module' line. Set uses_subdirs also when there is a .c
file in a subdir of tests/. When emitting a '+=' augmentation, make sure
it does not get emitted a second time. Don't produce Windows CR-LFs on
Windows. Simplify.
* pygnulib/GLImport.py (GLImport.execute): Update after getLink()
changed.
ChangeLog
pygnulib/GLEmiter.py
pygnulib/GLImport.py