OLD | NEW |
---|---|
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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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 dpkg --print-avail msttcorefonts >/dev/null 2>&1; then |
95 dev_list="${dev_list} msttcorefonts" | 95 dev_list="${dev_list} msttcorefonts" |
96 else | 96 else |
97 dev_list="${dev_list} ttf-mscorefonts-installer" | 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 |
Michael Moss
2012/03/21 00:36:49
For consistency, and to avoid similar issues with
| |
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 | 106 |
107 # Some packages are only needed, if the distribution actually supports | 107 # Some packages are only needed, if the distribution actually supports |
108 # installing them. | 108 # installing them. |
109 if dpkg --print-avail appmenu-gtk >/dev/null 2>&1; then | 109 if dpkg --print-avail appmenu-gtk >/dev/null 2>&1; then |
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
386 sed -e 's/[.]so[.][0-9].*/.so/' | | 386 sed -e 's/[.]so[.][0-9].*/.so/' | |
387 sort -u); do | 387 sort -u); do |
388 [ "x${i##*/}" = "xld-linux.so" ] && continue | 388 [ "x${i##*/}" = "xld-linux.so" ] && continue |
389 [ -r "$i" ] && continue | 389 [ -r "$i" ] && continue |
390 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | | 390 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | |
391 sort -n | tail -n 1)" | 391 sort -n | tail -n 1)" |
392 [ -r "$i.$j" ] || continue | 392 [ -r "$i.$j" ] || continue |
393 sudo ln -s "${i##*/}.$j" "$i" | 393 sudo ln -s "${i##*/}.$j" "$i" |
394 done | 394 done |
395 fi | 395 fi |
OLD | NEW |