12 lines
204 B
Python
12 lines
204 B
Python
|
#!/usr/bin/env python
|
||
|
|
||
|
import sys
|
||
|
import json
|
||
|
|
||
|
lst = []
|
||
|
for filename in sys.argv[1:]:
|
||
|
commands = json.load(open(filename))
|
||
|
lst.extend(commands)
|
||
|
|
||
|
json.dump(lst, open("compile_commands.json", "w"))
|