Sign in
qemu
/
meson
/
0ed78cf6fa6d87c0738f67ae43525e661b50a8a2
/
.
/
test cases
/
common
/
105 generatorcustom
/
gen.py
blob: 1464008f9b27fa5654621b3f7cf32d61ed93c12e [
file
] [
log
] [
blame
]
#!/usr/bin/env python3
import
sys
ifile
=
sys
.
argv
[
1
]
ofile
=
sys
.
argv
[
2
]
with
open
(
ifile
)
as
f
:
resname
=
f
.
readline
().
strip
()
templ
=
'const char %s[] = "%s";\n'
with
open
(
ofile
,
'w'
)
as
f
:
f
.
write
(
templ
%
(
resname
,
resname
))