cleanup specfile for packaging
[profile/ivi/automotive-dlt.git] / transform_spec_file.py
1 import sys
2 from Cheetah.Template import Template
3
4 output = sys.argv[2]
5 args = {}
6 for arg in sys.argv[3:]:
7     key, value = arg.split('=')
8     args[key] = value
9 t = Template(file=sys.argv[1], searchList=[args])
10 with open(output, 'w') as f:
11     f.write(str(t))