NEWS: fix release date of 0.1.110
[babl.git] / gen_babl_map.py
blob1ed41724010d9ad3e2ef11f4741cd59c8c2e7f69
1 #!/usr/bin/env python3
3 import sys
5 export_symbols=sys.argv[1]
6 version_file=sys.argv[2]
7 version_file_clang=sys.argv[2] + ".clang"
9 with open(export_symbols, 'r') as syms, \
10 open(version_file, 'w') as version:
11 version.write("V0_1_0 {\n global:\n")
12 for sym in syms:
13 version.write(" {};\n".format(sym.strip()))
14 version.write(" local:\n *;\n};\n")
16 with open(export_symbols, 'r') as syms, \
17 open(version_file_clang, 'w') as version:
18 for sym in syms:
19 version.write("_{}\n".format(sym.strip()))