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.

12 lines
215 B

#!/usr/bin/env python3
import sys, os
ifile = sys.argv[1]
ofile = sys.argv[2]
resname = open(ifile, 'r').readline().strip()
templ = 'const char %s[] = "%s";\n'
open(ofile, 'w').write(templ % (resname, resname))