Debian Codegraph @

vendored-meson/meson/test cases/common/105 generatorcustom/gen.py

raw
1 #!/usr/bin/env python3
2
3 import sys
4
5 ifile = sys.argv[1]
6 ofile = sys.argv[2]
7
8 with open(ifile) as f:
9 resname = f.readline().strip()
10
11 templ = 'const char %s[] = "%s";\n'
12 with open(ofile, 'w') as f:
13 f.write(templ % (resname, resname))