Sha256: 7f626843a36a8f97ef5300f91a1fdebeb316295b1b9fd81ba07ed404e57c2d7a
Contents?: true
Size: 527 Bytes
Versions: 6
Compression:
Stored size: 527 Bytes
Contents
description = """Prints the list of files in a compilation database. Run with python ./list-compile-files.py <path/to/compile_commands.json> """ from fnmatch import fnmatch import sys import json import os if len(sys.argv) != 2: print(description) sys.exit(1) compile_db = json.load(open(sys.argv[1] + "compile_commands.json", "r")) for entry in compile_db: fpath = entry['file'] fname = os.path.basename(fpath) if fnmatch(fname, 'mc-*') or fnmatch(fname, 'mongocrypt-*'): print(fpath) print("")
Version data entries
6 entries across 6 versions & 1 rubygems