Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1189)

Unified Diff: tools/clang/scripts/update.sh

Issue 7584023: Check out clang from $LLVM_URL if it's set. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/clang/scripts/update.sh
diff --git a/tools/clang/scripts/update.sh b/tools/clang/scripts/update.sh
index 3216be73686a16fc63023957642116ab234960be..c55931df57cc57b7ea9109f80c9d759ae37941b8 100755
--- a/tools/clang/scripts/update.sh
+++ b/tools/clang/scripts/update.sh
@@ -10,6 +10,9 @@ LLVM_DIR="${THIS_DIR}"/../../../third_party/llvm
CLANG_DIR="${LLVM_DIR}"/tools/clang
DEPS_FILE="${THIS_DIR}"/../../../DEPS
+# ${A:-a} returns $A if it's set, a else.
+LLVM_REPO_URL=${LLVM_URL:-http://llvm.org/svn/llvm-project}
+
# Die if any command dies.
set -e
@@ -22,18 +25,14 @@ if grep -q 'src/third_party/llvm":' "${DEPS_FILE}"; then
echo LLVM pulled in through DEPS, skipping LLVM update step
else
echo Getting LLVM r"${CLANG_REVISION}" in "${LLVM_DIR}"
- svn co --force \
- http://llvm.org/svn/llvm-project/llvm/trunk@"${CLANG_REVISION}" \
- "${LLVM_DIR}"
+ svn co --force "${LLVM_REPO_URL}"/llvm/trunk@"${CLANG_REVISION}" "${LLVM_DIR}"
fi
if grep -q 'src/third_party/llvm/tools/clang":' "${DEPS_FILE}"; then
echo clang pulled in through DEPS, skipping clang update step
else
echo Getting clang r"${CLANG_REVISION}" in "${CLANG_DIR}"
- svn co --force \
- http://llvm.org/svn/llvm-project/cfe/trunk@"${CLANG_REVISION}" \
- "${CLANG_DIR}"
+ svn co --force "${LLVM_REPO_URL}"/cfe/trunk@"${CLANG_REVISION}" "${CLANG_DIR}"
fi
# Echo all commands.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698