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.
18 lines
219 B
18 lines
219 B
5 years ago
|
#!/usr/bin/env python3
|
||
|
|
||
|
import sys
|
||
|
|
||
|
ifile = sys.argv[1]
|
||
|
ofile = sys.argv[2]
|
||
|
|
||
|
templ = '''#pragma once
|
||
|
|
||
|
int %s(void) {
|
||
|
return 42;
|
||
|
}
|
||
|
'''
|
||
|
|
||
|
funname = open(ifile).readline().strip()
|
||
|
|
||
|
open(ofile, 'w').write(templ % funname)
|