3 from __future__ import print_function
8 for h in os.environ["headers"].split (' '):
10 with io.open(h, encoding='utf8') as f: headers_content.append (f.read ())
14 LIBRARY lib%s-0.dll""" % (
15 "\n".join (sorted (re.findall (r"^hb_\w+(?= \()", "\n".join (headers_content), re.M))),
16 sys.argv[1].replace ('.def', '')
19 with open (sys.argv[1], "w") as f: f.write (result)