☰
Debian Codegraph
@
1.12.1-2
1.12.1-1
1.12.0-3
1.12.0-2
1.11.1-3
1.11.1-2
/
/
test cases
/
common
/
105 generatorcustom
/
catter.py
☽
☼
test cases/common/105 generatorcustom/catter.py
code
plain
raw
Apache-2.0
2012-2021 The Meson development team
debian/copyright
1
#!/usr/bin/env python3
2
3
import sys
4
5
output = sys.argv[-1]
6
inputs = sys.argv[1:-1]
7
8
with open(output, 'w', encoding='utf-8') as ofile:
9
ofile.write('#pragma once\n')
10
for i in inputs:
11
with open(i) as ifile:
12
content = ifile.read()
13
ofile.write(content)
14
ofile.write('\n')