OLD | NEW |
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 Loading... |
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 |
OLD | NEW |