OLD | NEW |
1 #!/bin/bash -e | 1 #!/bin/bash -e |
2 | 2 |
3 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2009 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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 dbg_list="libatk1.0-dbg libc6-dbg libcairo2-dbg | 154 dbg_list="libatk1.0-dbg libc6-dbg libcairo2-dbg |
155 libfontconfig1-dbg libglib2.0-0-dbg libgtk2.0-0-dbg libnspr4-0d-dbg | 155 libfontconfig1-dbg libglib2.0-0-dbg libgtk2.0-0-dbg libnspr4-0d-dbg |
156 libnss3-1d-dbg libpango1.0-0-dbg libpcre3-dbg libpixman-1-0-dbg | 156 libnss3-1d-dbg libpango1.0-0-dbg libpcre3-dbg libpixman-1-0-dbg |
157 libx11-6-dbg libxau6-dbg libxcb1-dbg libxcomposite1-dbg | 157 libx11-6-dbg libxau6-dbg libxcb1-dbg libxcomposite1-dbg |
158 libxcursor1-dbg libxdamage1-dbg libxdmcp6-dbg libxext6-dbg | 158 libxcursor1-dbg libxdamage1-dbg libxdmcp6-dbg libxext6-dbg |
159 libxfixes3-dbg libxi6-dbg libxinerama1-dbg libxrandr2-dbg | 159 libxfixes3-dbg libxi6-dbg libxinerama1-dbg libxrandr2-dbg |
160 libxrender1-dbg zlib1g-dbg" | 160 libxrender1-dbg zlib1g-dbg" |
161 | 161 |
162 # CUPS package changed it's name from hardy to the next version. Include | 162 # CUPS package changed it's name from hardy to the next version. Include |
163 # proper package here depending on the system. | 163 # proper package here depending on the system. |
164 if ! egrep -q 'Ubuntu (8\.04|8\.10)' /etc/issue; then | 164 if egrep -q 'Ubuntu (8\.04|8\.10)' /etc/issue; then |
165 dev_list="${dev_list} libcupsys2-dev" | 165 dev_list="${dev_list} libcupsys2-dev" |
166 else | 166 else |
167 dev_list="${dev_list} libcups2-dev" | 167 dev_list="${dev_list} libcups2-dev" |
168 fi | 168 fi |
169 | 169 |
170 # Waits for the user to press 'Y' or 'N'. Either uppercase of lowercase is | 170 # Waits for the user to press 'Y' or 'N'. Either uppercase of lowercase is |
171 # accepted. Returns 0 for 'Y' and 1 for 'N'. If an optional parameter has | 171 # accepted. Returns 0 for 'Y' and 1 for 'N'. If an optional parameter has |
172 # been provided to yes_no(), the function also accepts RETURN as a user input. | 172 # been provided to yes_no(), the function also accepts RETURN as a user input. |
173 # The parameter specifies the exit code that should be returned in that case. | 173 # The parameter specifies the exit code that should be returned in that case. |
174 # The function will echo the user's selection followed by a newline character. | 174 # The function will echo the user's selection followed by a newline character. |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
441 sed -e 's/[.]so[.][0-9].*/.so/' | | 441 sed -e 's/[.]so[.][0-9].*/.so/' | |
442 sort -u); do | 442 sort -u); do |
443 [ "x${i##*/}" = "xld-linux.so" ] && continue | 443 [ "x${i##*/}" = "xld-linux.so" ] && continue |
444 [ -r "$i" ] && continue | 444 [ -r "$i" ] && continue |
445 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | | 445 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | |
446 sort -n | tail -n 1)" | 446 sort -n | tail -n 1)" |
447 [ -r "$i.$j" ] || continue | 447 [ -r "$i.$j" ] || continue |
448 sudo ln -s "${i##*/}.$j" "$i" | 448 sudo ln -s "${i##*/}.$j" "$i" |
449 done | 449 done |
450 fi | 450 fi |
OLD | NEW |