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

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

Issue 15911004: Fix test for libudev1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 7 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) 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 lib_list="${lib_list} libnspr4 libnss3" 133 lib_list="${lib_list} libnspr4 libnss3"
134 else 134 else
135 dbg_list="${dbg_list} libnspr4-0d-dbg libnss3-1d-dbg" 135 dbg_list="${dbg_list} libnspr4-0d-dbg libnss3-1d-dbg"
136 lib_list="${lib_list} libnspr4-0d libnss3-1d" 136 lib_list="${lib_list} libnspr4-0d libnss3-1d"
137 fi 137 fi
138 if apt-cache show libjpeg-dev >/dev/null 2>&1; then 138 if apt-cache show libjpeg-dev >/dev/null 2>&1; then
139 dev_list="${dev_list} libjpeg-dev" 139 dev_list="${dev_list} libjpeg-dev"
140 else 140 else
141 dev_list="${dev_list} libjpeg62-dev" 141 dev_list="${dev_list} libjpeg62-dev"
142 fi 142 fi
143 if apt-cache show libudev1 >/dev/null 2>&1; then 143 if [ "$(apt-cache pkgnames libudev1 2>&1)" == "libudev1" ] ; then
144 dev_list="${dev_list} libudev1" 144 dev_list="${dev_list} libudev1"
145 else 145 else
146 dev_list="${dev_list} libudev0" 146 dev_list="${dev_list} libudev0"
147 fi 147 fi
148 148
149 149
150 # Some packages are only needed, if the distribution actually supports 150 # Some packages are only needed, if the distribution actually supports
151 # installing them. 151 # installing them.
152 if apt-cache show appmenu-gtk >/dev/null 2>&1; then 152 if apt-cache show appmenu-gtk >/dev/null 2>&1; then
153 lib_list="$lib_list appmenu-gtk" 153 lib_list="$lib_list appmenu-gtk"
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
495 sed -e 's/[.]so[.][0-9].*/.so/' | 495 sed -e 's/[.]so[.][0-9].*/.so/' |
496 sort -u); do 496 sort -u); do
497 [ "x${i##*/}" = "xld-linux.so" ] && continue 497 [ "x${i##*/}" = "xld-linux.so" ] && continue
498 [ -r "$i" ] && continue 498 [ -r "$i" ] && continue
499 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | 499 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' |
500 sort -n | tail -n 1)" 500 sort -n | tail -n 1)"
501 [ -r "$i.$j" ] || continue 501 [ -r "$i.$j" ] || continue
502 sudo ln -s "${i##*/}.$j" "$i" 502 sudo ln -s "${i##*/}.$j" "$i"
503 done 503 done
504 fi 504 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