-
David Baker authored
Mostly because the standard emscripten docker image does not have libjson-perl, but python always comes with json. But also because it was impenetrable.
David Baker authoredMostly because the standard emscripten docker image does not have libjson-perl, but python always comes with json. But also because it was impenetrable.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
exports.py 356 B
#!/usr/bin/env python
import sys
import re
import json
expr = re.compile(r"(olm_[^( ]*)\(")
exports = set()
for f in sys.argv[1:]:
with open(f) as fp:
for line in fp:
matches = expr.search(line)
if matches is not None:
exports.add('_%s' % (matches.group(1),))
json.dump(sorted(exports), sys.stdout)