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

Side by Side Diff: scripts/common.sh

Issue 8497037: Update the Memcheck binaries for Mac OS 10.5 to valgrind-variant r122. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/valgrind/
Patch Set: Created 9 years, 1 month 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 | « scripts/build-memcheck-for-chromium.sh ('k') | 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/sh 1 #!/bin/sh
2 2
3 # Copyright (c) 2009-2010 The Chromium Authors. All rights reserved. 3 # Copyright (c) 2009-2010 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 # This script contains some functions useful to build 7 # This script contains some functions useful to build
8 # Valgrind and ThreadSanitizer for use with chromium 8 # Valgrind and ThreadSanitizer for use with chromium
9 9
10 THISDIR=$(dirname "${0}") 10 THISDIR=$(dirname "${0}")
11 THISDIR=$(cd "${THISDIR}" && /bin/pwd) 11 THISDIR=$(cd "${THISDIR}" && /bin/pwd)
12 VG_SRC_DIR=/tmp/valgrind-src 12 VG_SRC_DIR=/tmp/valgrind-src-glider
13 13
14 system_is_snow_leopard() { 14 system_is_snow_leopard() {
15 uname -r | grep 10\.[0-9]\.[0-9] >/dev/null 15 uname -r | grep 10\.[0-9]\.[0-9] >/dev/null
16 } 16 }
17 17
18 checkout_and_patch_valgrind_variant() { 18 checkout_and_patch_valgrind_variant() {
19 # $1 = Valgrind-variant revision 19 # $1 = Valgrind-variant revision
20 # $2 = source dir 20 # $2 = source dir
21 # Checkout Valgrind, apply our patches to Valgrind. 21 # Checkout Valgrind, apply our patches to Valgrind.
22 # The source will be put in $VG_SRC_DIR/valgrind-source 22 # The source will be put in $VG_SRC_DIR/valgrind-source
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 # Check that the binaries directory exists. 173 # Check that the binaries directory exists.
174 BINARIES_DIR="$THISDIR/../binaries" 174 BINARIES_DIR="$THISDIR/../binaries"
175 if ! [ -a "$BINARIES_DIR" ] 175 if ! [ -a "$BINARIES_DIR" ]
176 then 176 then
177 echo "Error: $BINARIES_DIR doesn't exist!" >&2 177 echo "Error: $BINARIES_DIR doesn't exist!" >&2
178 exit 1 178 exit 1
179 fi 179 fi
180 180
181 set -e 181 set -e
182 set -x 182 set -x
OLDNEW
« no previous file with comments | « scripts/build-memcheck-for-chromium.sh ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698