summaryrefslogtreecommitdiffstats
path: root/gen_defs.py
blob: 78cf463d5352b494eccb3922acddf7aae98a5021 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env python3

import sys

symfile_path = sys.argv[1]
deffile_path = sys.argv[2]

with open(symfile_path) as symfile:
    lines = symfile.readlines()
    lines.insert(0, 'EXPORTS\n')
    with open(deffile_path, 'w') as deffile:
        deffile.writelines(lines)