gen-map.py 320 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#!/usr/bin/env python3
#
# gen-map.py LIBNICE.SYM
import os
import sys

try:
    sym_file = sys.argv[1]
except:
    print('Usage: gen-map.py SYM-FILE')
    exit(-1)

f = open(os.path.join(sym_file), 'r')

15
print('''{
16 17 18 19 20
global:''')

for line in f:
    print('\t' + line.strip() + ';')

21
print('''local:
22 23 24 25
	*;
};''')

f.close()