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

Side by Side Diff: tools/clang/scripts/update.sh

Issue 7994010: clang downloader: Clean up temporary files on the bots. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2011 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 into third_party/llvm and build it. 6 # This script will check out llvm and clang into third_party/llvm and build it.
7 7
8 THIS_DIR="$(dirname "${0}")" 8 THIS_DIR="$(dirname "${0}")"
9 LLVM_DIR="${THIS_DIR}/../../../third_party/llvm" 9 LLVM_DIR="${THIS_DIR}/../../../third_party/llvm"
10 LLVM_BUILD_DIR="${LLVM_DIR}/../llvm-build" 10 LLVM_BUILD_DIR="${LLVM_DIR}/../llvm-build"
(...skipping 27 matching lines...) Expand all
38 exit 1 38 exit 1
39 ;; 39 ;;
40 esac 40 esac
41 shift 41 shift
42 done 42 done
43 43
44 if [[ -n "$mac_only" ]] && [[ "${OS}" != "Darwin" ]]; then 44 if [[ -n "$mac_only" ]] && [[ "${OS}" != "Darwin" ]]; then
45 exit 0 45 exit 0
46 fi 46 fi
47 47
48 # TODO(thakis): Remove this after a week. http://crbug.com/96722
TVL 2011/09/22 17:31:32 instead of "after a week" put a date it should be
49 for rev in 138188 138417 139029 139473 139990; do
50 rm -f clang-$rev.tgz
51 rm -rf clang-$rev
52 done
53
48 # Xcode and clang don't get along when predictive compilation is enabled. 54 # Xcode and clang don't get along when predictive compilation is enabled.
49 # http://crbug.com/96315 55 # http://crbug.com/96315
50 if [[ "${OS}" = "Darwin" ]] && xcodebuild -version | grep -q 'Xcode 3.2' ; then 56 if [[ "${OS}" = "Darwin" ]] && xcodebuild -version | grep -q 'Xcode 3.2' ; then
51 XCONF=com.apple.Xcode 57 XCONF=com.apple.Xcode
52 if [ "$(defaults read "${XCONF}" EnablePredictiveCompilation)" != "0" ]; then 58 if [ "$(defaults read "${XCONF}" EnablePredictiveCompilation)" != "0" ]; then
53 echo 59 echo
54 echo " HEARKEN!" 60 echo " HEARKEN!"
55 echo "You're using Xcode3 and you have 'Predictive Compilation' enabled." 61 echo "You're using Xcode3 and you have 'Predictive Compilation' enabled."
56 echo "This does not work well with clang (http://crbug.com/96315)." 62 echo "This does not work well with clang (http://crbug.com/96315)."
57 echo "Disable it in Preferences->Building (lower right), or run" 63 echo "Disable it in Preferences->Building (lower right), or run"
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 PLUGIN_BUILD_DIR="${LLVM_BUILD_DIR}/tools/clang/tools/chrome-plugin" 192 PLUGIN_BUILD_DIR="${LLVM_BUILD_DIR}/tools/clang/tools/chrome-plugin"
187 rm -rf "${PLUGIN_DST_DIR}" 193 rm -rf "${PLUGIN_DST_DIR}"
188 cp -R "${PLUGIN_SRC_DIR}" "${PLUGIN_DST_DIR}" 194 cp -R "${PLUGIN_SRC_DIR}" "${PLUGIN_DST_DIR}"
189 rm -rf "${PLUGIN_BUILD_DIR}" 195 rm -rf "${PLUGIN_BUILD_DIR}"
190 mkdir -p "${PLUGIN_BUILD_DIR}" 196 mkdir -p "${PLUGIN_BUILD_DIR}"
191 cp "${PLUGIN_SRC_DIR}/Makefile" "${PLUGIN_BUILD_DIR}" 197 cp "${PLUGIN_SRC_DIR}/Makefile" "${PLUGIN_BUILD_DIR}"
192 make -j"${NUM_JOBS}" -C "${PLUGIN_BUILD_DIR}" 198 make -j"${NUM_JOBS}" -C "${PLUGIN_BUILD_DIR}"
193 199
194 # After everything is done, log success for this revision. 200 # After everything is done, log success for this revision.
195 echo "${CLANG_REVISION}" > "${STAMP_FILE}" 201 echo "${CLANG_REVISION}" > "${STAMP_FILE}"
OLDNEW
« 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