misc: experimental configure script
[vpp.git] / extras / scripts / compdb_cleanup.py
diff --git a/extras/scripts/compdb_cleanup.py b/extras/scripts/compdb_cleanup.py
deleted file mode 100755 (executable)
index 0139b6b..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/usr/bin/env python3
-
-import sys
-import json
-
-objects = json.load(sys.stdin)
-
-for i in range(len(objects) - 1, -1, -1):
-    obj = objects[i]
-
-    # Remove everything except .c files
-    if not obj["file"].endswith(".c"):
-        objects.remove(obj)
-        continue
-
-    # remove duplicates introduced my multiarch
-    if "CLIB_MARCH_VARIANT" in obj["command"]:
-        objects.remove(obj)
-        continue
-
-    # remove ccache prefix
-    s = str.split(obj["command"])
-    if s[0] == "ccache":
-        s.remove(s[0])
-        s[0] = s[0].split("/")[-1]
-    obj["command"] = " ".join(s)
-
-json.dump(objects, sys.stdout, indent=2)