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
250 B
16 lines
250 B
5 years ago
|
#!/usr/bin/env python3
|
||
|
|
||
|
import sys
|
||
|
import pathlib
|
||
|
|
||
|
[ifilename, ofilename] = sys.argv[1:3]
|
||
|
|
||
|
ftempl = '''int %s(void) {
|
||
|
return 6;
|
||
|
}
|
||
|
'''
|
||
|
|
||
|
d = pathlib.Path(ifilename).read_text().split('\n')[0].strip()
|
||
|
|
||
|
pathlib.Path(ofilename).write_text(ftempl % d)
|