+2024-04-02 Collin Funk <collin.funk1@gmail.com>
+
+ gnulib-tool.py: Fix determination whether to add the dummy module.
+ * pygnulib/GLModuleSystem.py (GLModuleSystem.add_dummy): Only match the
+ 'lib_SOURCES' variable; stop at end-of-line.
+
2024-04-02 Pádraig Brady <P@draigBrady.com>
renameatu: handle ENOSYS from renameatx_np
# Extract the value of unconditional "lib_SOURCES += ..." augmentations.
snippet = combine_lines(snippet)
snippet = self.remove_if_blocks(snippet)
- pattern = re.compile(r'^lib_SOURCES[\t ]*\+=([^#]*).*$', re.M)
- for matching_rhs in pattern.findall(snippet):
- files = matching_rhs.split(' ')
+ pattern = re.compile(r'^lib_SOURCES[\t ]*\+=[\t ]*([^#]+?)$', re.MULTILINE)
+ for matching_rhs in re.finditer(pattern, snippet):
+ files = matching_rhs.group(1).split()
for file in files:
# Ignore .h files since they are not compiled.
if not file.endswith('.h'):