Chromium Code Reviews| 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." |
| 211 echo "To skip: run with command line option --no-chromeos-fonts." | |
| 210 dir=`echo $0 | sed -r -e 's/\/[^/]+$//'` | 212 dir=`echo $0 | sed -r -e 's/\/[^/]+$//'` |
| 211 sudo $dir/linux/install-chromeos-fonts.py | 213 cp $dir/linux/install-chromeos-fonts.py /tmp |
| 214 sudo chmod 0555 /tmp/install-chromeos-fonts.py | |
|
Daniel Erat
2013/04/03 14:38:34
why do you need to use sudo when chmod-ing and rm-
sschmitz
2013/04/03 15:10:45
Good point. Removed. And using chmod a+x instead.
| |
| 215 sudo /tmp/install-chromeos-fonts.py | |
| 216 sudo rm /tmp/install-chromeos-fonts.py | |
| 212 else | 217 else |
| 213 echo "Skipping installation of Chrome OS fonts." | 218 echo "Skipping installation of Chrome OS fonts." |
| 214 fi | 219 fi |
| 215 | 220 |
| 216 # When cross building for arm on 64-bit systems the host binaries | 221 # 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 | 222 # that are part of v8 need to be compiled with -m32 which means |
| 218 # that basic multilib support is needed. | 223 # that basic multilib support is needed. |
| 219 if [ "$(uname -m)" = "x86_64" ]; then | 224 if [ "$(uname -m)" = "x86_64" ]; then |
| 220 arm_list="$arm_list g++-multilib" | 225 arm_list="$arm_list g++-multilib" |
| 221 fi | 226 fi |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 462 sed -e 's/[.]so[.][0-9].*/.so/' | | 467 sed -e 's/[.]so[.][0-9].*/.so/' | |
| 463 sort -u); do | 468 sort -u); do |
| 464 [ "x${i##*/}" = "xld-linux.so" ] && continue | 469 [ "x${i##*/}" = "xld-linux.so" ] && continue |
| 465 [ -r "$i" ] && continue | 470 [ -r "$i" ] && continue |
| 466 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | | 471 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | |
| 467 sort -n | tail -n 1)" | 472 sort -n | tail -n 1)" |
| 468 [ -r "$i.$j" ] || continue | 473 [ -r "$i.$j" ] || continue |
| 469 sudo ln -s "${i##*/}.$j" "$i" | 474 sudo ln -s "${i##*/}.$j" "$i" |
| 470 done | 475 done |
| 471 fi | 476 fi |
| OLD | NEW |