Sign in
qemu
/
meson
/
refs/heads/0.45
/
.
/
test cases
/
common
/
113 generatorcustom
/
catter.py
blob: 198fa98e2d42bdec6e71e0209e2c38ef0a92d899 [
file
] [
log
] [
blame
]
#!/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
:
with
open
(
i
,
'r'
)
as
ifile
:
content
=
ifile
.
read
()
ofile
.
write
(
content
)
ofile
.
write
(
'\n'
)