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.
11 lines
221 B
11 lines
221 B
5 years ago
|
#!/usr/bin/env python3
|
||
|
|
||
|
import sys
|
||
|
import os
|
||
|
|
||
|
with open(sys.argv[1]) as fh:
|
||
|
content = fh.read().replace("{NAME}", sys.argv[2])
|
||
|
|
||
|
with open(os.path.join(sys.argv[3]), 'w', errors='replace') as fh:
|
||
|
fh.write(content)
|