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

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

Issue 9764004: Fixed a few more minor nitpicks: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | build/install-chroot.sh » ('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
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 fi 49 fi
50 50
51 # Packages needed for chromeos only 51 # Packages needed for chromeos only
52 chromeos_dev_list="libpulse-dev" 52 chromeos_dev_list="libpulse-dev"
53 53
54 # Packages need for development 54 # Packages need for development
55 dev_list="apache2.2-bin bison curl elfutils fakeroot flex g++ gperf 55 dev_list="apache2.2-bin bison curl elfutils fakeroot flex g++ gperf
56 language-pack-fr libapache2-mod-php5 libasound2-dev libbz2-dev 56 language-pack-fr libapache2-mod-php5 libasound2-dev libbz2-dev
57 libcairo2-dev libcups2-dev libcurl4-gnutls-dev libdbus-glib-1-dev 57 libcairo2-dev libcups2-dev libcurl4-gnutls-dev libdbus-glib-1-dev
58 libelf-dev libgconf2-dev libgl1-mesa-dev libglib2.0-dev 58 libelf-dev libgconf2-dev libgl1-mesa-dev libglib2.0-dev
59 libglu1-mesa-dev libgnome-keyring-dev libgtk2.0-dev libjpeg62-dev 59 libglu1-mesa-dev libgnome-keyring-dev libgtk2.0-dev
60 libkrb5-dev libnspr4-dev libnss3-dev libpam0g-dev libsctp-dev 60 libkrb5-dev libnspr4-dev libnss3-dev libpam0g-dev libsctp-dev
61 libsqlite3-dev libssl-dev libudev-dev libwww-perl libxslt1-dev 61 libsqlite3-dev libssl-dev libudev-dev libwww-perl libxslt1-dev
62 libxss-dev libxt-dev libxtst-dev mesa-common-dev patch 62 libxss-dev libxt-dev libxtst-dev mesa-common-dev patch
63 perl php5-cgi pkg-config python python-cherrypy3 python-dev 63 perl php5-cgi pkg-config python python-cherrypy3 python-dev
64 python-psutil rpm ruby subversion ttf-dejavu-core ttf-indic-fonts 64 python-psutil rpm ruby subversion ttf-dejavu-core ttf-indic-fonts
65 ttf-kochi-gothic ttf-kochi-mincho ttf-thai-tlwg wdiff git-core 65 ttf-kochi-gothic ttf-kochi-mincho ttf-thai-tlwg wdiff git-core
66 $chromeos_dev_list" 66 $chromeos_dev_list"
67 67
68 # Run-time libraries required by chromeos only 68 # Run-time libraries required by chromeos only
69 chromeos_lib_list="libpulse0 libbz2-1.0 libcurl4-gnutls-dev" 69 chromeos_lib_list="libpulse0 libbz2-1.0 libcurl4-gnutls-dev"
(...skipping 14 matching lines...) Expand all
84 libsqlite3-0-dbg 84 libsqlite3-0-dbg
85 libx11-6-dbg libxau6-dbg libxcb1-dbg libxcomposite1-dbg 85 libx11-6-dbg libxau6-dbg libxcb1-dbg libxcomposite1-dbg
86 libxcursor1-dbg libxdamage1-dbg libxdmcp6-dbg libxext6-dbg 86 libxcursor1-dbg libxdamage1-dbg libxdmcp6-dbg libxext6-dbg
87 libxfixes3-dbg libxi6-dbg libxinerama1-dbg libxrandr2-dbg 87 libxfixes3-dbg libxi6-dbg libxinerama1-dbg libxrandr2-dbg
88 libxrender1-dbg libxtst6-dbg zlib1g-dbg" 88 libxrender1-dbg libxtst6-dbg zlib1g-dbg"
89 89
90 # Plugin lists needed for tests. 90 # Plugin lists needed for tests.
91 plugin_list="flashplugin-installer" 91 plugin_list="flashplugin-installer"
92 92
93 # Some package names have changed over time 93 # Some package names have changed over time
94 if dpkg --print-avail msttcorefonts >/dev/null 2>&1; then 94 if apt-cache show ttf-mscorefonts-installer >/dev/null 2>&1; then
95 dev_list="${dev_list} ttf-mscorefonts-installer"
96 else
95 dev_list="${dev_list} msttcorefonts" 97 dev_list="${dev_list} msttcorefonts"
96 else
97 dev_list="${dev_list} ttf-mscorefonts-installer"
98 fi 98 fi
99 if dpkg --print-avail libnspr4 >/dev/null 2>&1; then 99 if apt-cache show libnspr4-dbg >/dev/null 2>&1; then
100 dbg_list="${dbg_list} libnspr4-dbg libnss3-dbg" 100 dbg_list="${dbg_list} libnspr4-dbg libnss3-dbg"
101 lib_list="${lib_list} libnspr4 libnss3" 101 lib_list="${lib_list} libnspr4 libnss3"
102 else 102 else
103 dbg_list="${dbg_list} libnspr4-0d-dbg libnss3-1d-dbg" 103 dbg_list="${dbg_list} libnspr4-0d-dbg libnss3-1d-dbg"
104 lib_list="${lib_list} libnspr4-0d libnss3-1d" 104 lib_list="${lib_list} libnspr4-0d libnss3-1d"
105 fi 105 fi
106 if apt-cache show libjpeg-dev >/dev/null 2>&1; then
107 dev_list="${dev_list} libjpeg-dev"
108 else
109 dev_list="${dev_list} libjpeg62-dev"
110 fi
106 111
107 # Some packages are only needed, if the distribution actually supports 112 # Some packages are only needed, if the distribution actually supports
108 # installing them. 113 # installing them.
109 if dpkg --print-avail appmenu-gtk >/dev/null 2>&1; then 114 if apt-cache show appmenu-gtk >/dev/null 2>&1; then
110 lib_list="$lib_list appmenu-gtk" 115 lib_list="$lib_list appmenu-gtk"
111 fi 116 fi
112 117
113 # Waits for the user to press 'Y' or 'N'. Either uppercase of lowercase is 118 # Waits for the user to press 'Y' or 'N'. Either uppercase of lowercase is
114 # accepted. Returns 0 for 'Y' and 1 for 'N'. If an optional parameter has 119 # accepted. Returns 0 for 'Y' and 1 for 'N'. If an optional parameter has
115 # been provided to yes_no(), the function also accepts RETURN as a user input. 120 # been provided to yes_no(), the function also accepts RETURN as a user input.
116 # The parameter specifies the exit code that should be returned in that case. 121 # The parameter specifies the exit code that should be returned in that case.
117 # The function will echo the user's selection followed by a newline character. 122 # The function will echo the user's selection followed by a newline character.
118 # Users can abort the function by pressing CTRL-C. This will call "exit 1". 123 # Users can abort the function by pressing CTRL-C. This will call "exit 1".
119 yes_no() { 124 yes_no() {
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 sed -e 's/[.]so[.][0-9].*/.so/' | 391 sed -e 's/[.]so[.][0-9].*/.so/' |
387 sort -u); do 392 sort -u); do
388 [ "x${i##*/}" = "xld-linux.so" ] && continue 393 [ "x${i##*/}" = "xld-linux.so" ] && continue
389 [ -r "$i" ] && continue 394 [ -r "$i" ] && continue
390 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | 395 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' |
391 sort -n | tail -n 1)" 396 sort -n | tail -n 1)"
392 [ -r "$i.$j" ] || continue 397 [ -r "$i.$j" ] || continue
393 sudo ln -s "${i##*/}.$j" "$i" 398 sudo ln -s "${i##*/}.$j" "$i"
394 done 399 done
395 fi 400 fi
OLDNEW
« no previous file with comments | « no previous file | build/install-chroot.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698