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:
parent
82a9523f71
commit
c7dadfc57a
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user