]> Savannah Git Hosting - gnulib.git/commit
gnulib-tool.py: Follow gnulib-tool changes, part 51.
authorCollin Funk <collin.funk1@gmail.com>
Sun, 10 Mar 2024 21:07:35 +0000 (14:07 -0700)
committerBruno Haible <bruno@clisp.org>
Sun, 10 Mar 2024 22:33:56 +0000 (23:33 +0100)
commit270c20cb8f6ed7c3c4c24f4a3fa04a08ee304dee
treeb0e506c639764a5a2b013d26736fa7ea608fdf76
parent3a1eb894fc318adfe0dcc3b3cd99438d31b1b9ca
gnulib-tool.py: Follow gnulib-tool changes, part 51.

Follow gnulib-tool change
2021-12-15  Bruno Haible  <bruno@clisp.org>
Accommodate non-recursive Automake in a less hacky way.

* pygnulib/GLConfig.py (GLConfig.__init__): Add 'automake_subdir' to the
parameter list.
(GLConfig.default): Set the default value of automake_subdir to a
boolean False.
(GLConfig.getAutomakeSubdir, GLConfig.setAutomakeSubdir)
(GLConfig.resetAutomakeSubdir): New functions to access and manipulate
the automake_subdir option.
* pygnulib/GLEmiter.py (GLEmiter.shellvars_init): New function.
(GLEmiter.initmacro_end): Add second parameter 'gentests'. Use it to prefix each
object file name in *_LIBOBJS and *_LTLIBOBJS.
* pygnulib/GLError.py (GLError.__init__, GLError.__repr__): Add new
error for if --automake-subdir is used without the 'subdir-objects'
Automake option.
* pygnulib/GLImport.py (GLImport.__init__): Check for 'subdir-objects'
in Makefile.am.
(GLImport.actioncmd): Emit --automake-subdir in actioncmd.
(GLImport.gnulib_cache): Add gl_AUTOMAKE_SUBDIR to gnulib-cache.m4 if
--automake-subdir is used.
(GLImport.gnulib_comp): Update calls to GLEmiter.initmacro_end. Call
GLEmiter.shellvars_init.
(GLImport.execute): Likewise. Use the build-aux/prefix-gnulib-mk script.
* pygnulib/GLInfo.py (GLInfo.usage): Add --automake-subdir to the usage
message.
* pygnulib/GLTestDir.py (GLTestDir.execute): Update calls to
GLEmiter.initmacro_end. Call GLEmiter.shellvars_init.
* pygnulib/main.py (main): Add support for --automake-subdir.
ChangeLog
gnulib-tool.py.TODO
pygnulib/GLConfig.py
pygnulib/GLEmiter.py
pygnulib/GLError.py
pygnulib/GLImport.py
pygnulib/GLInfo.py
pygnulib/GLTestDir.py
pygnulib/main.py