summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorOleg Pudeyev <oleg@bsdpower.com>2016-01-01 19:48:04 -0500
committerOleg Pudeyev <oleg@bsdpower.com>2016-01-01 19:48:04 -0500
commite0d1599c110fe06f73d60cdcd443103888a2b98d (patch)
treed3759a5ca0bc463c9d059befe7b07ee6410e9bcb /scripts
parente8d5ff2b654a2bc7ef1c66cde851b52309953c93 (diff)
downloadpycurl-e0d1599c110fe06f73d60cdcd443103888a2b98d.tar.gz
Script to find unimplemented symbols
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/missing-symbols23
1 files changed, 23 insertions, 0 deletions
diff --git a/scripts/missing-symbols b/scripts/missing-symbols
new file mode 100755
index 0000000..a7e65ba
--- /dev/null
+++ b/scripts/missing-symbols
@@ -0,0 +1,23 @@
+#!/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
+ 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])