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/\/[^/]+$//'` |
212 if test `stat -f -c %T $dir | cut -b 1-3` != "ext"; then | |
213 echo "Warning: Your Repo appears to be on a Filer and not on a local file" | |
Jorge Lucangeli Obes
2013/04/04 02:33:44
nit: no caps: "repo"
Jorge Lucangeli Obes
2013/04/04 02:33:44
"Filer" -> "remote file system" not everybody comp
sschmitz
2013/04/04 14:51:31
Done.
sschmitz
2013/04/04 14:51:31
Done.
| |
214 echo "system. This is not recommended. The following may silently fail." | |
215 echo "To avoid this failure, you can run (at your own risk) with the" | |
216 echo "command line option --no-chromeos-fonts." | |
217 fi | |
211 sudo $dir/linux/install-chromeos-fonts.py | 218 sudo $dir/linux/install-chromeos-fonts.py |
212 else | 219 else |
213 echo "Skipping installation of Chrome OS fonts." | 220 echo "Skipping installation of Chrome OS fonts." |
214 fi | 221 fi |
215 | 222 |
216 # When cross building for arm on 64-bit systems the host binaries | 223 # 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 | 224 # that are part of v8 need to be compiled with -m32 which means |
218 # that basic multilib support is needed. | 225 # that basic multilib support is needed. |
219 if [ "$(uname -m)" = "x86_64" ]; then | 226 if [ "$(uname -m)" = "x86_64" ]; then |
220 arm_list="$arm_list g++-multilib" | 227 arm_list="$arm_list g++-multilib" |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
462 sed -e 's/[.]so[.][0-9].*/.so/' | | 469 sed -e 's/[.]so[.][0-9].*/.so/' | |
463 sort -u); do | 470 sort -u); do |
464 [ "x${i##*/}" = "xld-linux.so" ] && continue | 471 [ "x${i##*/}" = "xld-linux.so" ] && continue |
465 [ -r "$i" ] && continue | 472 [ -r "$i" ] && continue |
466 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | | 473 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | |
467 sort -n | tail -n 1)" | 474 sort -n | tail -n 1)" |
468 [ -r "$i.$j" ] || continue | 475 [ -r "$i.$j" ] || continue |
469 sudo ln -s "${i##*/}.$j" "$i" | 476 sudo ln -s "${i##*/}.$j" "$i" |
470 done | 477 done |
471 fi | 478 fi |
OLD | NEW |