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