OLD | NEW |
1 #!/bin/bash -e | 1 #!/bin/bash -e |
2 | 2 |
3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2012 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 # Script to install everything needed to build chromium (well, ideally, anyway) | 7 # Script to install everything needed to build chromium (well, ideally, anyway) |
8 # See http://code.google.com/p/chromium/wiki/LinuxBuildInstructions | 8 # See http://code.google.com/p/chromium/wiki/LinuxBuildInstructions |
9 # and http://code.google.com/p/chromium/wiki/LinuxBuild64Bit | 9 # and http://code.google.com/p/chromium/wiki/LinuxBuild64Bit |
10 | 10 |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 fi | 199 fi |
200 if test "$do_inst_syms" = "1"; then | 200 if test "$do_inst_syms" = "1"; then |
201 echo "Installing debugging symbols." | 201 echo "Installing debugging symbols." |
202 else | 202 else |
203 echo "Skipping installation of debugging symbols." | 203 echo "Skipping installation of debugging symbols." |
204 dbg_list= | 204 dbg_list= |
205 fi | 205 fi |
206 | 206 |
207 # Install the Chrome OS default fonts. | 207 # Install the Chrome OS default fonts. |
208 if test "$do_inst_chromeos_fonts" != "0"; then | 208 if test "$do_inst_chromeos_fonts" != "0"; then |
| 209 echo |
209 echo "Installing Chrome OS fonts." | 210 echo "Installing Chrome OS fonts." |
210 dir=`echo $0 | sed -r -e 's/\/[^/]+$//'` | 211 dir=`echo $0 | sed -r -e 's/\/[^/]+$//'` |
211 sudo $dir/linux/install-chromeos-fonts.py | 212 if ! sudo $dir/linux/install-chromeos-fonts.py; then |
| 213 echo "ERROR: The installation of the Chrome OS default fonts failed." |
| 214 if [ `stat -f -c %T $dir` == "nfs" ]; then |
| 215 echo "The reason is that your repo is installed on a remote file system." |
| 216 else |
| 217 echo "This is expected if your repo is installed on a remote file system." |
| 218 fi |
| 219 echo "It is recommended to install your repo on a local file system." |
| 220 echo "You can skip the installation of the Chrome OS default founts with" |
| 221 echo "the command line option: --no-chromeos-fonts." |
| 222 exit 1 |
| 223 fi |
212 else | 224 else |
213 echo "Skipping installation of Chrome OS fonts." | 225 echo "Skipping installation of Chrome OS fonts." |
214 fi | 226 fi |
215 | 227 |
216 # When cross building for arm on 64-bit systems the host binaries | 228 # When cross building for arm on 64-bit systems the host binaries |
217 # that are part of v8 need to be compiled with -m32 which means | 229 # that are part of v8 need to be compiled with -m32 which means |
218 # that basic multilib support is needed. | 230 # that basic multilib support is needed. |
219 if [ "$(uname -m)" = "x86_64" ]; then | 231 if [ "$(uname -m)" = "x86_64" ]; then |
220 arm_list="$arm_list g++-multilib" | 232 arm_list="$arm_list g++-multilib" |
221 fi | 233 fi |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
462 sed -e 's/[.]so[.][0-9].*/.so/' | | 474 sed -e 's/[.]so[.][0-9].*/.so/' | |
463 sort -u); do | 475 sort -u); do |
464 [ "x${i##*/}" = "xld-linux.so" ] && continue | 476 [ "x${i##*/}" = "xld-linux.so" ] && continue |
465 [ -r "$i" ] && continue | 477 [ -r "$i" ] && continue |
466 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | | 478 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | |
467 sort -n | tail -n 1)" | 479 sort -n | tail -n 1)" |
468 [ -r "$i.$j" ] || continue | 480 [ -r "$i.$j" ] || continue |
469 sudo ln -s "${i##*/}.$j" "$i" | 481 sudo ln -s "${i##*/}.$j" "$i" |
470 done | 482 done |
471 fi | 483 fi |
OLD | NEW |