Filter out .tpl and .in and documentation file names

Those suffixes are commonly used for files that are processed during
build to produce some final version.

Fixes #169.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2021-12-11 12:52:44 +01:00
parent e9a84e8261
commit 498f0d5978

View file

@ -241,7 +241,7 @@ def get_doc_files(path):
README[.-].*|CHANGELOG|CHANGELOG[.-].*|TODO|TODO[.-].*
""",
re.IGNORECASE | re.VERBOSE)
minus = re.compile(r"CMakeLists\.txt")
minus = re.compile(r"CMakeLists\.txt|.*\.tpl|.*\.in")
for root, dirs, files in os.walk(path, topdown=True):
dirs[:] = []