diff options
author | Nick Mathewson <nickm@torproject.org> | 2020-01-13 09:34:17 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2020-01-13 09:34:17 -0500 |
commit | 73ac1add3f2af813c18b1da5f0082f6112267304 (patch) | |
tree | 47181b7a09b4fa5e3aa5a7879040e04901da1873 /scripts/maint/add_c_file.py | |
parent | 5888db496746e2fef344c40912ff07be8a216f9c (diff) | |
download | tor-73ac1add3f2af813c18b1da5f0082f6112267304.tar.gz tor-73ac1add3f2af813c18b1da5f0082f6112267304.zip |
Split core/include.am into per-subdirectory include.am files
Closes ticket 32137.
Diffstat (limited to 'scripts/maint/add_c_file.py')
-rwxr-xr-x | scripts/maint/add_c_file.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/scripts/maint/add_c_file.py b/scripts/maint/add_c_file.py index a9a6eb25bd..9ec182efcc 100755 --- a/scripts/maint/add_c_file.py +++ b/scripts/maint/add_c_file.py @@ -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" |