blob: 589091fbc6937178045c6ca147a0c110accaffa7 (
plain)
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
26
27
28
|
#!/usr/bin/env python
import sys, re, subprocess
def process(siv_path):
with open(siv_path) as f:
for line in f:
if line[0] == ' ':
# comment
continue
line = line.strip()
if line == '':
continue
parts = re.split(r'\s+', line)
if len(parts) >= 4:
# removed symbol, all are very old
continue
if parts[0] == 'CURLOPT_CLOSEPOLICY' or \
parts[0].startswith('CURLCLOSEPOLICY_') or \
parts[0] == 'CURLOPT_WRITEINFO':
# no docs for these options
continue
try:
subprocess.check_call(['git', 'grep', '-q', parts[0], 'src'])
except subprocess.CalledProcessError:
print('Missing %s (since %s)' % (parts[0], parts[1]))
process(sys.argv[1])
|