File: gen-map.py

package info (click to toggle)
libnice 0.1.22-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,668 kB
  • sloc: ansic: 38,160; xml: 125; sh: 48; python: 28; makefile: 18
file content (25 lines) | stat: -rw-r--r-- 320 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/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')

print('''{
global:''')

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

print('''local:
	*;
};''')

f.close()