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

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: update 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
« no previous file with comments | « no previous file | build/linux/install-chromeos-fonts.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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-fonts: enable or disable installation of Chrome OS"\
Daniel Erat 2013/02/21 21:51:43 nit: think you need a space before the closing dou
sschmitz 2013/02/21 22:04:27 Actually no. Example: % echo "abc" "def" abc de
18 "fonts"
17 echo "--no-prompt: silently select standard options/defaults" 19 echo "--no-prompt: silently select standard options/defaults"
18 echo "Script will prompt interactively if options not given." 20 echo "Script will prompt interactively if options not given."
19 exit 1 21 exit 1
20 } 22 }
21 23
22 while test "$1" != "" 24 while test "$1" != ""
23 do 25 do
24 case "$1" in 26 case "$1" in
25 --syms) do_inst_syms=1;; 27 --syms) do_inst_syms=1;;
26 --no-syms) do_inst_syms=0;; 28 --no-syms) do_inst_syms=0;;
27 --lib32) do_inst_lib32=1;; 29 --lib32) do_inst_lib32=1;;
28 --no-lib32) do_inst_lib32=0;; 30 --no-lib32) do_inst_lib32=0;;
29 --arm) do_inst_arm=1;; 31 --arm) do_inst_arm=1;;
30 --no-arm) do_inst_arm=0;; 32 --no-arm) do_inst_arm=0;;
33 --chromeos-fonts) do_inst_chromeos_fonts=1;;
34 --no-chromeos-fonts) do_inst_chromeos_fonts=0;;
31 --no-prompt) do_default=1 35 --no-prompt) do_default=1
32 do_quietly="-qq --assume-yes" 36 do_quietly="-qq --assume-yes"
33 ;; 37 ;;
34 --unsupported) do_unsupported=1;; 38 --unsupported) do_unsupported=1;;
35 *) usage;; 39 *) usage;;
36 esac 40 esac
37 shift 41 shift
38 done 42 done
39 43
40 ubuntu_versions="10\.04|10\.10|11\.04|11\.10|12\.04|12\.10" 44 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 198 do_inst_syms=1
195 fi 199 fi
196 fi 200 fi
197 if test "$do_inst_syms" = "1"; then 201 if test "$do_inst_syms" = "1"; then
198 echo "Installing debugging symbols." 202 echo "Installing debugging symbols."
199 else 203 else
200 echo "Skipping installation of debugging symbols." 204 echo "Skipping installation of debugging symbols."
201 dbg_list= 205 dbg_list=
202 fi 206 fi
203 207
208 # Install the Chrome OS default fonts.
209 if test "$do_inst_chromeos_fonts" != "0"; then
210 echo "Installing Chrome OS fonts."
211 dir=`echo $0 | sed -r -e 's/\/[^/]+$//'`
212 sudo $dir/linux/install-chromeos-fonts.py
213 else
214 echo "Skipping installation of Chrome OS fonts."
215 fi
Nico 2013/09/17 19:48:25 As this new script depends on curl, can you move t
216
204 # When cross building for arm on 64-bit systems the host binaries 217 # 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 218 # that are part of v8 need to be compiled with -m32 which means
206 # that basic multilib support is needed. 219 # that basic multilib support is needed.
207 if [ "$(uname -m)" = "x86_64" ]; then 220 if [ "$(uname -m)" = "x86_64" ]; then
208 arm_list="$arm_list g++-multilib" 221 arm_list="$arm_list g++-multilib"
209 fi 222 fi
210 223
211 if test "$do_inst_arm" = "1"; then 224 if test "$do_inst_arm" = "1"; then
212 . /etc/lsb-release 225 . /etc/lsb-release
213 if test "$DISTRIB_CODENAME" != "precise"; then 226 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/' | 463 sed -e 's/[.]so[.][0-9].*/.so/' |
451 sort -u); do 464 sort -u); do
452 [ "x${i##*/}" = "xld-linux.so" ] && continue 465 [ "x${i##*/}" = "xld-linux.so" ] && continue
453 [ -r "$i" ] && continue 466 [ -r "$i" ] && continue
454 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | 467 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' |
455 sort -n | tail -n 1)" 468 sort -n | tail -n 1)"
456 [ -r "$i.$j" ] || continue 469 [ -r "$i.$j" ] || continue
457 sudo ln -s "${i##*/}.$j" "$i" 470 sudo ln -s "${i##*/}.$j" "$i"
458 done 471 done
459 fi 472 fi
OLDNEW
« no previous file with comments | « no previous file | build/linux/install-chromeos-fonts.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698