☰
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
/
125 configure file in generator
/
src
/
gen.py
☽
☼
test cases/common/125 configure file in generator/src/gen.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
ifile = sys.argv[1]
6
ofile = sys.argv[2]
7
8
with open(ifile) as f:
9
resval = f.readline().strip()
10
11
templ = '#define RESULT (%s)\n'
12
with open(ofile, 'w') as f:
13
f.write(templ % (resval, ))