OLD | NEW |
1 #!/bin/sh | 1 #!/bin/sh |
2 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2013 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 wrapper script runs the Debian sysroot installation scripts, if they | 6 # This wrapper script runs the Debian sysroot installation scripts, if they |
7 # exist. | 7 # exist. |
8 # | 8 # |
9 # The script is a no-op except for linux users who have the following in their | 9 # The script is a no-op except for linux users who have the following in their |
10 # GYP_DEFINES: | 10 # GYP_DEFINES: |
11 # | 11 # |
12 # * branding=Chrome | 12 # * branding=Chrome |
13 # * buildtype=Official | 13 # * buildtype=Official |
14 # * target_arch=[matching_arch] | 14 # * target_arch=[matching_arch] |
15 # | 15 # |
16 # and not: | 16 # and not: |
17 # | 17 # |
18 # * chromeos=1 | 18 # * chromeos=1 |
19 | 19 |
20 set -e | 20 set -e |
21 | 21 |
22 SRC_DIR="$(dirname "$0")/../../" | 22 SRC_DIR="$(dirname "$0")/../../" |
23 SCRIPT_DIR="chrome/installer/linux/internal/sysroot_scripts/" | 23 SCRIPT_DIR="chrome/installer/linux/internal/sysroot_scripts/" |
24 SCRIPT_FILE="$SRC_DIR/$SCRIPT_DIR/install-debian.wheezy.sysroot.py" | 24 SCRIPT_FILE="$SRC_DIR/$SCRIPT_DIR/install-debian.wheezy.sysroot.py" |
25 | 25 |
26 if [ -e "$SCRIPT_FILE" ]; then | 26 if [ -e "$SCRIPT_FILE" ]; then |
27 python "$SCRIPT_FILE" --linux-only --arch=amd64 | 27 python "$SCRIPT_FILE" --linux-only --arch=amd64 |
28 python "$SCRIPT_FILE" --linux-only --arch=i386 | 28 python "$SCRIPT_FILE" --linux-only --arch=i386 |
29 fi | 29 fi |
OLD | NEW |