add_c_file: tolerate ./ in filenames.

This commit is contained in:
Nick Mathewson 2020-01-15 12:58:52 -05:00 committed by teor
parent ef1744e2c9
commit 4f45ad1394
No known key found for this signature in database
GPG Key ID: 10FEAA0E7075672A

View File

@ -216,6 +216,9 @@ def run(fn):
add them to include.am.
"""
if fn.startswith("./"):
fn = fn[2:]
cf = makeext(fn, "c")
hf = makeext(fn, "h")