blob: 24f62c4e49416715a00c5c60c4c6dad9f58f2f65 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/usr/bin/env python3
import sys
import re
def convert_release():
skip_flag = False
for line in sys.stdin:
line = line.rstrip()
if not skip_flag:
if re.search(r'// +internal +{', line):
skip_flag = True
continue
else:
if re.search(r'// +}', line):
skip_flag = False
continue
print(line)
if __name__ == '__main__':
convert_release()
# end of file
|