Mercurial > gnulib
changeset 19336:935f6bf2bb1c
module: filelist helper
author | Dmitry Selyutin <ghostmansd@gmail.com> |
---|---|
date | Fri, 29 Sep 2017 22:46:51 +0300 |
parents | 3008147e771a |
children | dddb2a9ddaee |
files | pygnulib/module.py |
diffstat | 1 files changed, 13 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/pygnulib/module.py Fri Sep 29 22:46:16 2017 +0300 +++ b/pygnulib/module.py Fri Sep 29 22:46:51 2017 +0300 @@ -543,3 +543,16 @@ if {file for file in files if not file.endswith(".h")}: return True return False + + + +def filelist(modules, ac_version): + """Determine the final file list.""" + files = set() + for module in modules: + files.update(module.files) + files.add("m4/00gnulib.m4") + files.add("m4/gnulib-common.m4") + if ac_version == 2.59: + files.add("m4/onceonly.m4") + return frozenset(files)