Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(709)

Side by Side Diff: build/install-build-deps.sh

Issue 12313039: Installing ChromeOS font on developer Linux machine (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
11 usage() { 11 usage() {
12 echo "Usage: $0 [--options]" 12 echo "Usage: $0 [--options]"
13 echo "Options:" 13 echo "Options:"
14 echo "--[no-]syms: enable or disable installation of debugging symbols" 14 echo "--[no-]syms: enable or disable installation of debugging symbols"
15 echo "--[no-]lib32: enable or disable installation of 32 bit libraries" 15 echo "--[no-]lib32: enable or disable installation of 32 bit libraries"
16 echo "--[no-]arm: enable or disable installation of arm cross toolchain" 16 echo "--[no-]arm: enable or disable installation of arm cross toolchain"
17 echo "--[no-]chromeos-font: enable or disable installation of ChromeOS font"
Daniel Erat 2013/02/21 20:38:03 nit: "chromeos-fonts" would probably be better, in
sschmitz 2013/02/21 21:47:44 Done.
17 echo "--no-prompt: silently select standard options/defaults" 18 echo "--no-prompt: silently select standard options/defaults"
18 echo "Script will prompt interactively if options not given." 19 echo "Script will prompt interactively if options not given."
19 exit 1 20 exit 1
20 } 21 }
21 22
22 while test "$1" != "" 23 while test "$1" != ""
23 do 24 do
24 case "$1" in 25 case "$1" in
25 --syms) do_inst_syms=1;; 26 --syms) do_inst_syms=1;;
26 --no-syms) do_inst_syms=0;; 27 --no-syms) do_inst_syms=0;;
27 --lib32) do_inst_lib32=1;; 28 --lib32) do_inst_lib32=1;;
28 --no-lib32) do_inst_lib32=0;; 29 --no-lib32) do_inst_lib32=0;;
29 --arm) do_inst_arm=1;; 30 --arm) do_inst_arm=1;;
30 --no-arm) do_inst_arm=0;; 31 --no-arm) do_inst_arm=0;;
32 --chromeos-font) do_inst_chromeos_font=1;;
33 --no-chromeos-font) do_inst_chromeos_font=0;;
31 --no-prompt) do_default=1 34 --no-prompt) do_default=1
32 do_quietly="-qq --assume-yes" 35 do_quietly="-qq --assume-yes"
33 ;; 36 ;;
34 --unsupported) do_unsupported=1;; 37 --unsupported) do_unsupported=1;;
35 *) usage;; 38 *) usage;;
36 esac 39 esac
37 shift 40 shift
38 done 41 done
39 42
40 ubuntu_versions="10\.04|10\.10|11\.04|11\.10|12\.04|12\.10" 43 ubuntu_versions="10\.04|10\.10|11\.04|11\.10|12\.04|12\.10"
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 do_inst_syms=1 197 do_inst_syms=1
195 fi 198 fi
196 fi 199 fi
197 if test "$do_inst_syms" = "1"; then 200 if test "$do_inst_syms" = "1"; then
198 echo "Installing debugging symbols." 201 echo "Installing debugging symbols."
199 else 202 else
200 echo "Skipping installation of debugging symbols." 203 echo "Skipping installation of debugging symbols."
201 dbg_list= 204 dbg_list=
202 fi 205 fi
203 206
207 # Install the ChromeOS default font.
208 if test "$do_inst_chromeos_font" != "0"; then
Daniel Erat 2013/02/21 20:38:03 nit: echo a message like "Installing Chrome OS fon
sschmitz 2013/02/21 21:47:44 For symmetry, I will add a message. That will add
209 dir=`echo $0 | sed -r -e 's/\/[^/]+$//'`
210 sudo $dir/linux/install-chromeos-font.py
211 else
212 echo "Skipping installation of ChromeOS font."
Daniel Erat 2013/02/21 20:38:03 nit: s/ChromeOS/Chrome OS/, s/font/fonts/
sschmitz 2013/02/21 21:47:44 Done.
213 fi
214
204 # When cross building for arm on 64-bit systems the host binaries 215 # When cross building for arm on 64-bit systems the host binaries
205 # that are part of v8 need to be compiled with -m32 which means 216 # that are part of v8 need to be compiled with -m32 which means
206 # that basic multilib support is needed. 217 # that basic multilib support is needed.
207 if [ "$(uname -m)" = "x86_64" ]; then 218 if [ "$(uname -m)" = "x86_64" ]; then
208 arm_list="$arm_list g++-multilib" 219 arm_list="$arm_list g++-multilib"
209 fi 220 fi
210 221
211 if test "$do_inst_arm" = "1"; then 222 if test "$do_inst_arm" = "1"; then
212 . /etc/lsb-release 223 . /etc/lsb-release
213 if test "$DISTRIB_CODENAME" != "precise"; then 224 if test "$DISTRIB_CODENAME" != "precise"; then
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 sed -e 's/[.]so[.][0-9].*/.so/' | 461 sed -e 's/[.]so[.][0-9].*/.so/' |
451 sort -u); do 462 sort -u); do
452 [ "x${i##*/}" = "xld-linux.so" ] && continue 463 [ "x${i##*/}" = "xld-linux.so" ] && continue
453 [ -r "$i" ] && continue 464 [ -r "$i" ] && continue
454 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | 465 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' |
455 sort -n | tail -n 1)" 466 sort -n | tail -n 1)"
456 [ -r "$i.$j" ] || continue 467 [ -r "$i.$j" ] || continue
457 sudo ln -s "${i##*/}.$j" "$i" 468 sudo ln -s "${i##*/}.$j" "$i"
458 done 469 done
459 fi 470 fi
OLDNEW
« no previous file with comments | « no previous file | build/linux/install-chromeos-font.py » ('j') | build/linux/install-chromeos-font.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698