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")
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
:
19 version
.write("_{}\n".format(sym
.strip()))