Sign in
qemu
/
meson
/
b6e5683764c5b296a98b67c0a2ec11fbd9f59c71
/
.
/
test cases
/
common
/
125 configure file in generator
/
src
/
gen.py
blob: 426d0b74cc131c3fb51fa97ec1b807c29dcf0a4e [
file
] [
log
] [
blame
]
#!/usr/bin/env python3
import
sys
ifile
=
sys
.
argv
[
1
]
ofile
=
sys
.
argv
[
2
]
with
open
(
ifile
)
as
f
:
resval
=
f
.
readline
().
strip
()
templ
=
'#define RESULT (%s)\n'
with
open
(
ofile
,
'w'
)
as
f
:
f
.
write
(
templ
%
(
resval
,
))