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

Version Path
libmongocrypt-helper-1.12.0.0.1001 ext/libmongocrypt/libmongocrypt/etc/list-compile-files.py
libmongocrypt-helper-1.11.0.0.1001 ext/libmongocrypt/libmongocrypt/etc/list-compile-files.py
libmongocrypt-helper-1.8.0.0.1001 ext/libmongocrypt/libmongocrypt/etc/list-compile-files.py
libmongocrypt-helper-1.7.4.0.1002 ext/libmongocrypt/libmongocrypt/etc/list-compile-files.py
libmongocrypt-helper-1.7.4.0.1001 ext/libmongocrypt/libmongocrypt/etc/list-compile-files.py
libmongocrypt-helper-1.7.4.0.1000 ext/libmongocrypt/libmongocrypt/etc/list-compile-files.py