OLD | NEW |
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 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 echo "This is only needed to build a 32-bit Chrome on your 64-bit system." | 333 echo "This is only needed to build a 32-bit Chrome on your 64-bit system." |
334 echo | 334 echo |
335 echo "While we only need to install a relatively small number of library" | 335 echo "While we only need to install a relatively small number of library" |
336 echo "files, we temporarily need to download a lot of large *.deb packages" | 336 echo "files, we temporarily need to download a lot of large *.deb packages" |
337 echo "that contain these files. We will create new *.deb packages that" | 337 echo "that contain these files. We will create new *.deb packages that" |
338 echo "include just the 32bit libraries. These files will then be found on" | 338 echo "include just the 32bit libraries. These files will then be found on" |
339 echo "your system in places like /lib32, /usr/lib32, /usr/lib/debug/lib32," | 339 echo "your system in places like /lib32, /usr/lib32, /usr/lib/debug/lib32," |
340 echo "/usr/lib/debug/usr/lib32. If you ever need to uninstall these files," | 340 echo "/usr/lib/debug/usr/lib32. If you ever need to uninstall these files," |
341 echo "look for packages named *-ia32.deb." | 341 echo "look for packages named *-ia32.deb." |
342 echo "Do you want me to download all packages needed to build new 32bit" | 342 echo "Do you want me to download all packages needed to build new 32bit" |
343 echo -n "package files (Y/n) " | 343 echo -n "package files (y/N) " |
344 if yes_no 0; then | 344 if yes_no 1; then |
345 do_inst_lib32=1 | 345 do_inst_lib32=1 |
346 fi | 346 fi |
347 fi | 347 fi |
348 if test "$do_inst_lib32" != "1" | 348 if test "$do_inst_lib32" != "1" |
349 then | 349 then |
350 echo "Exiting without installing any 32bit libraries." | 350 echo "Exiting without installing any 32bit libraries." |
351 exit 0 | 351 exit 0 |
352 fi | 352 fi |
353 | 353 |
354 # Standard 32bit compatibility libraries | 354 # Standard 32bit compatibility libraries |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
501 sed -e 's/[.]so[.][0-9].*/.so/' | | 501 sed -e 's/[.]so[.][0-9].*/.so/' | |
502 sort -u); do | 502 sort -u); do |
503 [ "x${i##*/}" = "xld-linux.so" ] && continue | 503 [ "x${i##*/}" = "xld-linux.so" ] && continue |
504 [ -r "$i" ] && continue | 504 [ -r "$i" ] && continue |
505 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | | 505 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | |
506 sort -n | tail -n 1)" | 506 sort -n | tail -n 1)" |
507 [ -r "$i.$j" ] || continue | 507 [ -r "$i.$j" ] || continue |
508 sudo ln -s "${i##*/}.$j" "$i" | 508 sudo ln -s "${i##*/}.$j" "$i" |
509 done | 509 done |
510 fi | 510 fi |
OLD | NEW |