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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 if [ "$(uname -m)" = "x86_64" ]; then | 211 if [ "$(uname -m)" = "x86_64" ]; then |
212 if test "$do_inst_lib32" = "" | 212 if test "$do_inst_lib32" = "" |
213 then | 213 then |
214 echo "We no longer recommend that you use this script to install" | 214 echo "We no longer recommend that you use this script to install" |
215 echo "32bit libraries on a 64bit system. Instead, consider using" | 215 echo "32bit libraries on a 64bit system. Instead, consider using" |
216 echo "the install-chroot.sh script to help you set up a 32bit" | 216 echo "the install-chroot.sh script to help you set up a 32bit" |
217 echo "environment for building and testing 32bit versions of Chrome." | 217 echo "environment for building and testing 32bit versions of Chrome." |
218 echo | 218 echo |
219 echo "If you nonetheless want to try installing 32bit libraries" | 219 echo "If you nonetheless want to try installing 32bit libraries" |
220 echo "directly, you can do so by explicitly passing the --lib32" | 220 echo "directly, you can do so by explicitly passing the --lib32" |
221 echo "option to install-build-deps.sh. | 221 echo "option to install-build-deps.sh." |
222 fi | 222 fi |
223 if test "$do_inst_lib32" != "1" | 223 if test "$do_inst_lib32" != "1" |
224 then | 224 then |
225 echo "Exiting without installing any 32bit libraries." | 225 echo "Exiting without installing any 32bit libraries." |
226 exit 0 | 226 exit 0 |
227 fi | 227 fi |
228 | 228 |
229 echo "N.B. the code for installing 32bit libraries on a 64bit" | 229 echo "N.B. the code for installing 32bit libraries on a 64bit" |
230 echo " system is no longer actively maintained and might" | 230 echo " system is no longer actively maintained and might" |
231 echo " not work with modern versions of Ubuntu or Debian." | 231 echo " not work with modern versions of Ubuntu or Debian." |
(...skipping 154 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 |