bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] gnulib-tool.py: Follow gnulib-tool changes, part 66.


From: Collin Funk
Subject: [PATCH] gnulib-tool.py: Follow gnulib-tool changes, part 66.
Date: Mon, 18 Mar 2024 16:40:17 -0700
User-agent: Mozilla Thunderbird

This patch should be pretty easy to test with:

$ gnulib-tool --create-testdir --dir mytestdir libtextstyle-optional

comparing gnulib-tool.sh and gnulib-tool.py before and after the
patch.

Also, I am aware that the conditional that I changed in
GLTestDir.execute() can be simplified to:

        # Determine final file list.
        if not single_configure:
            main_modules = modules
            tests_modules = [ module
                              for module in modules
                              if module.repeatModuleInTests() ]

         main_filelist, tests_filelist = \
                moduletable.filelist_separately(main_modules, tests_modules)
        filelist = sorted(set(main_filelist + tests_filelist))

But shell script requires the
'if $single_configure; then ... else ... fi' because the function
messes with variables.

I figured that simplifying it might just make it harder to cross
reference if someone new wants to mess with gnulib-tool.py. :)

Collin

Attachment: 0002-gnulib-tool.py-Follow-gnulib-tool-changes-part-66.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]