Merge remote-tracking branch 'tor-github/pr/1657'

This commit is contained in:
Nick Mathewson
2020-01-15 13:10:14 -05:00
26 changed files with 611 additions and 457 deletions
+2 -5
View File
@@ -192,12 +192,9 @@ def get_include_am_location(fname):
not (yet) consistent.
"""
td = topdir_file(fname)
m = re.match(r'^lib/([a-z0-9_]*)/', td)
m = re.match(r'^(lib|core|feature|app)/([a-z0-9_]*)/', td)
if m:
return "src/lib/{}/include.am".format(m.group(1))
if re.match(r'^(core|feature|app)/', td):
return "src/core/include.am"
return "src/{}/{}/include.am".format(m.group(1),m.group(2))
if re.match(r'^test/', td):
return "src/test/include.am"