The Meson Build System
http://mesonbuild.com/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
246 B
16 lines
246 B
7 years ago
|
#!/usr/bin/env python3
|
||
|
|
||
|
import sys
|
||
|
import pathlib
|
||
|
|
||
|
[ifilename, ofilename] = sys.argv[1:3]
|
||
|
|
||
|
ftempl = '''int %s() {
|
||
|
return 6;
|
||
|
}
|
||
|
'''
|
||
|
|
||
|
d = pathlib.Path(ifilename).read_text().split('\n')[0].strip()
|
||
|
|
||
7 years ago
|
pathlib.Path(ofilename).write_text(ftempl % d)
|