summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorEd Tanous <ed.tanous@intel.com>2018-07-27 12:24:15 -0700
committerEd Tanous <ed.tanous@intel.com>2018-08-15 18:56:58 +0000
commit4859bdbafbb2b78ae414fb050ad197db2f2cb28b (patch)
tree383e3177e84ad7038c7c91740674c70b90e892c1 /scripts
parentd76323e5faa6243d153a34783a4378162408ff74 (diff)
downloadbmcweb-4859bdbafbb2b78ae414fb050ad197db2f2cb28b.tar.gz
bmcweb-4859bdbafbb2b78ae414fb050ad197db2f2cb28b.zip
Remove VScode specific script
Latest version of vscode CMake plugin does this automatically, so this script has no reason to exist anymore. Change-Id: I917822c4359b85bd7afca610b25145377a07606b Signed-off-by: Ed Tanous <ed.tanous@intel.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/prime_vscode_compile_db.py29
1 files changed, 0 insertions, 29 deletions
diff --git a/scripts/prime_vscode_compile_db.py b/scripts/prime_vscode_compile_db.py
deleted file mode 100755
index 82ce977..0000000
--- a/scripts/prime_vscode_compile_db.py
+++ /dev/null
@@ -1,29 +0,0 @@
-#! /usr/bin/python3
-
-import json
-import shlex
-import os
-import sys
-
-SCRIPT_DIR = os.path.dirname(os.path.realpath(__file__))
-VS_CODE_FILE = os.path.join(SCRIPT_DIR, "../.vscode/c_cpp_properties.json")
-
-def main():
- """ Main function"""
- if os.path.exists(VS_CODE_FILE):
- unique_includes = list(set(sys.argv[1:]))
-
- print("Adding {} includes to c_cpp_properties.json".format(len(unique_includes)))
- with open(VS_CODE_FILE) as vscodefile:
- vscode_data = json.load(vscodefile)
-
- for config in vscode_data["configurations"]:
- if config["name"] in "Linux":
- config["includePath"] = unique_includes
-
-
- with open(VS_CODE_FILE, 'w') as vscodefile:
- json.dump(vscode_data, vscodefile, sort_keys=True, indent=4)
-
-if __name__ == "__main__":
- main()
OpenPOWER on IntegriCloud