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