naiveproxy/get-clang-mac.sh

10 lines
439 B
Bash
Raw Normal View History

2018-12-12 18:04:29 +03:00
#!/bin/sh
set -ex
CLANG_REVISION=$(grep -m1 CLANG_REVISION tools/clang/scripts/update.py | cut -d"'" -f2)
CLANG_SUB_REVISION=$(grep -m1 CLANG_SUB_REVISION tools/clang/scripts/update.py | cut -d= -f2)
url="https://commondatastorage.googleapis.com/chromium-browser-clang/Mac/clang-$CLANG_REVISION-$CLANG_SUB_REVISION.tgz"
mkdir -p third_party/llvm-build/Release+Asserts
cd third_party/llvm-build/Release+Asserts
curl "$url" -o- | tar xzf -