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
286 B

#!/usr/bin/env python3
import os
import sys
ENV_VAR_VALUE = os.environ.get('ENV_VAR_VALUE')
assert ENV_VAR_VALUE is not None
with open(sys.argv[1], 'r') as infile, \
open(sys.argv[2], 'w') as outfile:
outfile.write(infile.read().replace('ENV_VAR_VALUE', ENV_VAR_VALUE))