OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 # This script will check out llvm and clang, and then package the results up | 6 # This script will check out llvm and clang, and then package the results up |
7 # to a tgz file. | 7 # to a tgz file. |
8 | 8 |
9 gcc_toolchain= | 9 gcc_toolchain= |
10 | 10 |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 rm -rf "${LLVM_BOOTSTRAP_INSTALL_DIR}" | 80 rm -rf "${LLVM_BOOTSTRAP_INSTALL_DIR}" |
81 rm -rf "${LLVM_BUILD_DIR}" | 81 rm -rf "${LLVM_BUILD_DIR}" |
82 extra_flags= | 82 extra_flags= |
83 if [[ -n "${gcc_toolchain}" ]]; then | 83 if [[ -n "${gcc_toolchain}" ]]; then |
84 extra_flags="--gcc-toolchain ${gcc_toolchain}" | 84 extra_flags="--gcc-toolchain ${gcc_toolchain}" |
85 fi | 85 fi |
86 "${THIS_DIR}"/update.sh --bootstrap --force-local-build --run-tests \ | 86 "${THIS_DIR}"/update.sh --bootstrap --force-local-build --run-tests \ |
87 ${extra_flags} 2>&1 | tee -a buildlog.txt | 87 ${extra_flags} 2>&1 | tee -a buildlog.txt |
88 | 88 |
89 R=$("${LLVM_BIN_DIR}/clang" --version | \ | 89 R=$("${LLVM_BIN_DIR}/clang" --version | \ |
90 sed -ne 's/clang version .*(trunk \([0-9]*\))/\1/p') | 90 sed -ne 's/clang version .*(\([0-9]*\))/\1/p') |
91 | 91 |
92 PDIR=clang-$R | 92 PDIR=clang-$R |
93 rm -rf $PDIR | 93 rm -rf $PDIR |
94 mkdir $PDIR | 94 mkdir $PDIR |
95 mkdir $PDIR/bin | 95 mkdir $PDIR/bin |
96 mkdir $PDIR/lib | 96 mkdir $PDIR/lib |
97 | 97 |
98 if [ "$(uname -s)" = "Darwin" ]; then | 98 if [ "$(uname -s)" = "Darwin" ]; then |
99 SO_EXT="dylib" | 99 SO_EXT="dylib" |
100 else | 100 else |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 | 175 |
176 if [ "$(uname -s)" = "Darwin" ]; then | 176 if [ "$(uname -s)" = "Darwin" ]; then |
177 PLATFORM=Mac | 177 PLATFORM=Mac |
178 else | 178 else |
179 PLATFORM=Linux_x64 | 179 PLATFORM=Linux_x64 |
180 fi | 180 fi |
181 | 181 |
182 echo To upload, run: | 182 echo To upload, run: |
183 echo gsutil cp -a public-read $PDIR.tgz \ | 183 echo gsutil cp -a public-read $PDIR.tgz \ |
184 gs://chromium-browser-clang/$PLATFORM/$PDIR.tgz | 184 gs://chromium-browser-clang/$PLATFORM/$PDIR.tgz |
OLD | NEW |