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

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

Issue 7720013: Added flash plugin. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/build/
Patch Set: Created 9 years, 4 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 | no next file » | 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) 2011 The Chromium Authors. All rights reserved. 3 # Copyright (c) 2011 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 # Debugging symbols for all of the run-time libraries 128 # Debugging symbols for all of the run-time libraries
129 dbg_list="libatk1.0-dbg libc6-dbg libcairo2-dbg 129 dbg_list="libatk1.0-dbg libc6-dbg libcairo2-dbg
130 libfontconfig1-dbg libglib2.0-0-dbg libgtk2.0-0-dbg 130 libfontconfig1-dbg libglib2.0-0-dbg libgtk2.0-0-dbg
131 libpango1.0-0-dbg libpcre3-dbg libpixman-1-0-dbg 131 libpango1.0-0-dbg libpcre3-dbg libpixman-1-0-dbg
132 libsqlite3-0-dbg 132 libsqlite3-0-dbg
133 libx11-6-dbg libxau6-dbg libxcb1-dbg libxcomposite1-dbg 133 libx11-6-dbg libxau6-dbg libxcb1-dbg libxcomposite1-dbg
134 libxcursor1-dbg libxdamage1-dbg libxdmcp6-dbg libxext6-dbg 134 libxcursor1-dbg libxdamage1-dbg libxdmcp6-dbg libxext6-dbg
135 libxfixes3-dbg libxi6-dbg libxinerama1-dbg libxrandr2-dbg 135 libxfixes3-dbg libxi6-dbg libxinerama1-dbg libxrandr2-dbg
136 libxrender1-dbg libxtst6-dbg zlib1g-dbg" 136 libxrender1-dbg libxtst6-dbg zlib1g-dbg"
137 137
138 # Plugin lists needed for tests.
139 plugin_list="flashplugin-installer"
140
138 # Some NSS packages were renamed in Natty. 141 # Some NSS packages were renamed in Natty.
139 if egrep -q 'Ubuntu (10\.04|10\.10)' /etc/issue; then 142 if egrep -q 'Ubuntu (10\.04|10\.10)' /etc/issue; then
140 dbg_list="${dbg_list} libnspr4-0d-dbg libnss3-1d-dbg" 143 dbg_list="${dbg_list} libnspr4-0d-dbg libnss3-1d-dbg"
141 lib_list="${lib_list} libnspr4-0d libnss3-1d" 144 lib_list="${lib_list} libnspr4-0d libnss3-1d"
142 else 145 else
143 dbg_list="${dbg_list} libnspr4-dbg libnss3-dbg" 146 dbg_list="${dbg_list} libnspr4-dbg libnss3-dbg"
144 lib_list="${lib_list} libnspr4 libnss3" 147 lib_list="${lib_list} libnspr4 libnss3"
145 fi 148 fi
146 149
147 # Waits for the user to press 'Y' or 'N'. Either uppercase of lowercase is 150 # Waits for the user to press 'Y' or 'N'. Either uppercase of lowercase is
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 dbg_list= 201 dbg_list=
199 fi 202 fi
200 203
201 sudo apt-get update 204 sudo apt-get update
202 205
203 # We initially run "apt-get" with the --reinstall option and parse its output. 206 # We initially run "apt-get" with the --reinstall option and parse its output.
204 # This way, we can find all the packages that need to be newly installed 207 # This way, we can find all the packages that need to be newly installed
205 # without accidentally promoting any packages from "auto" to "manual". 208 # without accidentally promoting any packages from "auto" to "manual".
206 # We then re-run "apt-get" with just the list of missing packages. 209 # We then re-run "apt-get" with just the list of missing packages.
207 echo "Finding missing packages..." 210 echo "Finding missing packages..."
208 packages="${dev_list} ${lib_list} ${dbg_list}" 211 packages="${dev_list} ${lib_list} ${dbg_list} ${plugin_list}"
209 # Intentially leaving $packages unquoted so it's more readable. 212 # Intentially leaving $packages unquoted so it's more readable.
210 echo "Packages required: " $packages 213 echo "Packages required: " $packages
211 echo 214 echo
212 new_list_cmd="sudo apt-get install --reinstall $(echo $packages)" 215 new_list_cmd="sudo apt-get install --reinstall $(echo $packages)"
213 if new_list="$(yes n | LANG=C $new_list_cmd)"; then 216 if new_list="$(yes n | LANG=C $new_list_cmd)"; then
214 # We probably never hit this following line. 217 # We probably never hit this following line.
215 echo "No missing packages, and the packages are up-to-date." 218 echo "No missing packages, and the packages are up-to-date."
216 elif [ $? -eq 1 ]; then 219 elif [ $? -eq 1 ]; then
217 # We expect apt-get to have exit status of 1. 220 # We expect apt-get to have exit status of 1.
218 # This indicates that we canceled the install with "yes n|". 221 # This indicates that we canceled the install with "yes n|".
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
453 sed -e 's/[.]so[.][0-9].*/.so/' | 456 sed -e 's/[.]so[.][0-9].*/.so/' |
454 sort -u); do 457 sort -u); do
455 [ "x${i##*/}" = "xld-linux.so" ] && continue 458 [ "x${i##*/}" = "xld-linux.so" ] && continue
456 [ -r "$i" ] && continue 459 [ -r "$i" ] && continue
457 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | 460 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' |
458 sort -n | tail -n 1)" 461 sort -n | tail -n 1)"
459 [ -r "$i.$j" ] || continue 462 [ -r "$i.$j" ] || continue
460 sudo ln -s "${i##*/}.$j" "$i" 463 sudo ln -s "${i##*/}.$j" "$i"
461 done 464 done
462 fi 465 fi
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698