mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-09-03 15:35:17 +00:00
[#3267] fix find header script not finding files
Script did not find files that are on the same line as the _HEADERS variable.
This commit is contained in:
@@ -32,12 +32,12 @@ def main():
|
|||||||
|
|
||||||
header = None
|
header = None
|
||||||
|
|
||||||
|
backslash_matches = backslash_pattern.search(line)
|
||||||
headers_matches = headers_pattern.search(line)
|
headers_matches = headers_pattern.search(line)
|
||||||
if headers_matches is None:
|
if headers_matches is None:
|
||||||
if not in_headers_block:
|
if not in_headers_block:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
backslash_matches = backslash_pattern.search(line)
|
|
||||||
if backslash_matches is None:
|
if backslash_matches is None:
|
||||||
header = line
|
header = line
|
||||||
in_headers_block = False
|
in_headers_block = False
|
||||||
@@ -45,8 +45,9 @@ def main():
|
|||||||
header = backslash_matches.group(1)
|
header = backslash_matches.group(1)
|
||||||
else:
|
else:
|
||||||
in_headers_block = True
|
in_headers_block = True
|
||||||
if '\\' in headers_matches.group(2) and len(headers_matches.group(1)) != 0:
|
candidate = headers_matches.group(1)
|
||||||
header = headers_matches.group(1)
|
if backslash_matches is None and len(candidate):
|
||||||
|
header = candidate
|
||||||
|
|
||||||
if header is not None:
|
if header is not None:
|
||||||
relative_path = makefile_am.parent / header.strip()
|
relative_path = makefile_am.parent / header.strip()
|
||||||
|
Reference in New Issue
Block a user