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

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

Issue 12256005: Replace seq invocation with 'jot -'. They don't have seq on Mac by default. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 10 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 #!/usr/bin/env bash 1 #!/usr/bin/env 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 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 # Do NOT CHANGE this if you don't know what you're doing -- see 8 # Do NOT CHANGE this if you don't know what you're doing -- see
9 # https://code.google.com/p/chromium/wiki/UpdatingClang 9 # https://code.google.com/p/chromium/wiki/UpdatingClang
10 # Reverting problematic clang rolls is safe, though. 10 # Reverting problematic clang rolls is safe, though.
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 "to build ASan on Mac." 80 "to build ASan on Mac."
81 echo "--with-tools-extra: Also build the clang-tools-extra repository." 81 echo "--with-tools-extra: Also build the clang-tools-extra repository."
82 exit 1 82 exit 1
83 ;; 83 ;;
84 esac 84 esac
85 shift 85 shift
86 done 86 done
87 87
88 # Are we on a Chrome buildbot running ASan? 88 # Are we on a Chrome buildbot running ASan?
89 function on_asan_mac_host { 89 function on_asan_mac_host {
90 if [[ "${OS}" != "Darwin" ]]; then
91 return 1
92 fi
90 HOST="$(uname -n)" 93 HOST="$(uname -n)"
91 # Chrome Mac ASan Builder. 94 # Chrome Mac ASan Builder.
92 if [[ "${HOST}" == "vm633-m1.golo.chromium.org" ]]; then 95 if [[ "${HOST}" == "vm633-m1.golo.chromium.org" ]]; then
93 return 0 96 return 0
94 fi 97 fi
95 # Chrome Mac ASan LKGR. 98 # Chrome Mac ASan LKGR.
96 if [[ "${HOST}" == "mini11-a1.golo.chromium.org" ]]; then 99 if [[ "${HOST}" == "mini11-a1.golo.chromium.org" ]]; then
97 return 0 100 return 0
98 fi 101 fi
99 # mac_asan trybots. 102 # mac_asan trybots.
100 for num in $(seq 600 655) 103 for num in $(jot - 600 655)
Mark Mentovai 2013/02/13 13:37:55 You’re using bash. Why not use the built-in form?
Nico 2013/02/13 15:48:29 +1
101 do 104 do
102 if [[ "${HOST}" == "vm${num}-m4.golo.chromium.org" ]]; then 105 if [[ "${HOST}" == "vm${num}-m4.golo.chromium.org" ]]; then
103 return 0 106 return 0
104 fi 107 fi
105 done 108 done
106 return 1 109 return 1
107 } 110 }
108 111
109 # Use older Clang for ASan Mac builds. See http://crbug.com/170629. 112 # Use older Clang for ASan Mac builds. See http://crbug.com/170629.
110 if [[ -n "${is_asan_mac_builder_hackfix}" ]] || on_asan_mac_host; then 113 if [[ -n "${is_asan_mac_builder_hackfix}" ]] || on_asan_mac_host; then
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 # Run a few tests. 390 # Run a few tests.
388 PLUGIN_SRC_DIR="${THIS_DIR}/../plugins" 391 PLUGIN_SRC_DIR="${THIS_DIR}/../plugins"
389 "${PLUGIN_SRC_DIR}/tests/test.sh" "${LLVM_BUILD_DIR}/Release+Asserts" 392 "${PLUGIN_SRC_DIR}/tests/test.sh" "${LLVM_BUILD_DIR}/Release+Asserts"
390 cd "${LLVM_BUILD_DIR}" 393 cd "${LLVM_BUILD_DIR}"
391 make check-all 394 make check-all
392 cd - 395 cd -
393 fi 396 fi
394 397
395 # After everything is done, log success for this revision. 398 # After everything is done, log success for this revision.
396 echo "${CLANG_REVISION}" > "${STAMP_FILE}" 399 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