The Meson Build System
http://mesonbuild.com/
15 lines
292 B
15 lines
292 B
5 years ago
|
#!/usr/bin/env python3
|
||
|
|
||
|
import sys
|
||
|
|
||
|
output = sys.argv[-1]
|
||
|
inputs = sys.argv[1:-1]
|
||
|
|
||
|
with open(output, 'w') as ofile:
|
||
|
ofile.write('#pragma once\n')
|
||
|
for i in inputs:
|
||
4 years ago
|
with open(i) as ifile:
|
||
5 years ago
|
content = ifile.read()
|
||
|
ofile.write(content)
|
||
|
ofile.write('\n')
|