Commit 050f39df authored by thakis@chromium.org's avatar thakis@chromium.org

Check out clang from $LLVM_URL if it's set.

BUG=none
TEST=none

Review URL: http://codereview.chromium.org/7584023

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95744 0039d316-1c4b-4281-b951-d872f2087c98
parent c93e10cd
......@@ -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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment