+2024-03-21 Collin Funk <collin.funk1@gmail.com>
+
+ gnulib-tool.py: Make --extract-filelist match gnulib-tool.sh.
+ * pygnulib/GLModuleSystem.py (GLModule.getFiles_Raw): New function which
+ returns the 'Files:' section from a module unchanged.
+ (GLModule.getFiles): Use it.
+ * pygnulib/main.py (main): Use it and match the output of gnulib-tool.sh
+ for --extract-filelist.
+
2024-03-21 Bruno Haible <bruno@clisp.org>
gnulib-tool: Make the .gitignore files handling more consistent.
self.cache['applicability'] = result
return self.cache['applicability']
+ def getFiles_Raw(self) -> str:
+ '''Return the unmodified list of files as a string.'''
+ return self.sections.get('Files', '')
+
def getFiles(self):
'''GLModule.getFiles() -> list
Return list of files.
GLConfig: ac_version.'''
if 'files' not in self.cache:
- snippet = self.sections.get('Files', '')
+ snippet = self.getFiles_Raw()
result = [ line.strip()
for line in snippet.split('\n')
if line.strip() ]
for name in modules:
module = modulesystem.find(name)
if module:
- files = module.getFiles()
- print(lines_to_multiline(files), end='')
+ files = module.getFiles_Raw()
+ files += 'm4/00gnulib.m4\n'
+ files += 'm4/zzgnulib.m4\n'
+ files += 'm4/gnulib-common.m4\n'
+ print(files, end='')
elif mode == 'extract-dependencies':
if avoids: