Commit c7dadfc57a061758651ae0055d2bf0b75a446a26
1 parent
82a9523f
Fix extra output file
Showing
1 changed file
with
6 additions
and
7 deletions
scripts/MakeSingleHeader.py
| ... | ... | @@ -26,13 +26,12 @@ def MakeHeader(out): |
| 26 | 26 | |
| 27 | 27 | headers = set() |
| 28 | 28 | output = '' |
| 29 | - with open('output.hpp', 'w') as f: | |
| 30 | - for inc in include_files: | |
| 31 | - with (BDIR / inc).open() as f: | |
| 32 | - inner = f.read() | |
| 33 | - headers |= set(includes_system.findall(inner)) | |
| 34 | - output += '\n// From {inc}\n\n'.format(inc=inc) | |
| 35 | - output += inner[inner.find('namespace'):] | |
| 29 | + for inc in include_files: | |
| 30 | + with (BDIR / inc).open() as f: | |
| 31 | + inner = f.read() | |
| 32 | + headers |= set(includes_system.findall(inner)) | |
| 33 | + output += '\n// From {inc}\n\n'.format(inc=inc) | |
| 34 | + output += inner[inner.find('namespace'):] | |
| 36 | 35 | |
| 37 | 36 | header_list = '\n'.join('#include <'+h+'>' for h in headers) |
| 38 | 37 | ... | ... |