1
0
mirror of https://github.com/CLIUtils/CLI11.git synced 2025-04-30 20:53:52 +00:00

Fix extra output file

This commit is contained in:
Henry Fredrick Schreiner 2017-02-06 14:42:27 -05:00
parent 82a9523f71
commit c7dadfc57a

View File

@ -26,13 +26,12 @@ def MakeHeader(out):
headers = set()
output = ''
with open('output.hpp', 'w') as f:
for inc in include_files:
with (BDIR / inc).open() as f:
inner = f.read()
headers |= set(includes_system.findall(inner))
output += '\n// From {inc}\n\n'.format(inc=inc)
output += inner[inner.find('namespace'):]
for inc in include_files:
with (BDIR / inc).open() as f:
inner = f.read()
headers |= set(includes_system.findall(inner))
output += '\n// From {inc}\n\n'.format(inc=inc)
output += inner[inner.find('namespace'):]
header_list = '\n'.join('#include <'+h+'>' for h in headers)