summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/Xcode/build-llvm.py3
-rw-r--r--scripts/Xcode/repo.py11
-rw-r--r--scripts/analyze-project-deps.py4
3 files changed, 17 insertions, 1 deletions
diff --git a/scripts/Xcode/build-llvm.py b/scripts/Xcode/build-llvm.py
index 36e491ebf065e..e2a46de1a16ce 100755
--- a/scripts/Xcode/build-llvm.py
+++ b/scripts/Xcode/build-llvm.py
@@ -43,6 +43,9 @@ def process_repo(r):
}
def XCODE_REPOSITORIES():
+ override = repo.get_override()
+ if override:
+ return [process_repo(r) for r in override]
identifier = repo.identifier()
if identifier == None:
identifier = "<invalid>" # repo.find will just use the fallback file
diff --git a/scripts/Xcode/repo.py b/scripts/Xcode/repo.py
index 7623c503ba9f8..2657b6eb0c4e3 100644
--- a/scripts/Xcode/repo.py
+++ b/scripts/Xcode/repo.py
@@ -21,6 +21,17 @@ def identifier():
pass
return None
+def get_override():
+ dir = os.path.dirname(os.path.realpath(__file__))
+ repos_dir = os.path.join(dir, "repos")
+ json_regex = re.compile(r"^.*.json$")
+ override_path = os.path.join(repos_dir, "OVERRIDE")
+ if os.path.isfile(override_path):
+ override_set = json.load(open(override_path))
+ return override_set["repos"]
+ else:
+ return None
+
def find(identifier):
dir = os.path.dirname(os.path.realpath(__file__))
repos_dir = os.path.join(dir, "repos")
diff --git a/scripts/analyze-project-deps.py b/scripts/analyze-project-deps.py
index e06d7035d43de..52a880d3b3c8f 100644
--- a/scripts/analyze-project-deps.py
+++ b/scripts/analyze-project-deps.py
@@ -1,3 +1,5 @@
+#! /usr/bin/env python
+
import argparse
import itertools
import os
@@ -203,4 +205,4 @@ if args.discover_cycles:
for (node, inc, outg) in sorted:
print " {} [{} in, {} out]".format(node, inc, outg)
sys.stdout.flush()
-pass \ No newline at end of file
+pass