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.
14 lines
245 B
14 lines
245 B
8 years ago
|
#!/usr/bin/env python3
|
||
9 years ago
|
|
||
8 years ago
|
import sys
|
||
9 years ago
|
|
||
|
ifile = sys.argv[1]
|
||
|
ofile = sys.argv[2]
|
||
|
|
||
8 years ago
|
with open(ifile, 'r') as f:
|
||
|
resname = f.readline().strip()
|
||
9 years ago
|
|
||
9 years ago
|
templ = 'const char %s[] = "%s";\n'
|
||
8 years ago
|
with open(ofile, 'w') as f:
|
||
|
f.write(templ % (resname, resname))
|