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 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 echo | 304 echo |
305 echo "While we only need to install a relatively small number of library" | 305 echo "While we only need to install a relatively small number of library" |
306 echo "files, we temporarily need to download a lot of large *.deb packages" | 306 echo "files, we temporarily need to download a lot of large *.deb packages" |
307 echo "that contain these files. We will create new *.deb packages that" | 307 echo "that contain these files. We will create new *.deb packages that" |
308 echo "include just the 32bit libraries. These files will then be found on" | 308 echo "include just the 32bit libraries. These files will then be found on" |
309 echo "your system in places like /lib32, /usr/lib32, /usr/lib/debug/lib32," | 309 echo "your system in places like /lib32, /usr/lib32, /usr/lib/debug/lib32," |
310 echo "/usr/lib/debug/usr/lib32. If you ever need to uninstall these files," | 310 echo "/usr/lib/debug/usr/lib32. If you ever need to uninstall these files," |
311 echo "look for packages named *-ia32.deb." | 311 echo "look for packages named *-ia32.deb." |
312 echo "Do you want me to download all packages needed to build new 32bit" | 312 echo "Do you want me to download all packages needed to build new 32bit" |
313 echo -n "package files (Y/n) " | 313 echo -n "package files (Y/n) " |
314 if ! yes_no 0; then | 314 if yes_no 0; then |
315 do_inst_lib32=1 | 315 do_inst_lib32=1 |
316 fi | 316 fi |
317 fi | 317 fi |
318 if test "$do_inst_lib32" != "1" | 318 if test "$do_inst_lib32" != "1" |
319 then | 319 then |
320 echo "Exiting without installing any 32bit libraries." | 320 echo "Exiting without installing any 32bit libraries." |
321 exit 0 | 321 exit 0 |
322 fi | 322 fi |
323 tmp=/tmp/install-32bit.$$ | 323 tmp=/tmp/install-32bit.$$ |
324 trap 'rm -rf "${tmp}"' EXIT INT TERM QUIT | 324 trap 'rm -rf "${tmp}"' EXIT INT TERM QUIT |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
431 sed -e 's/[.]so[.][0-9].*/.so/' | | 431 sed -e 's/[.]so[.][0-9].*/.so/' | |
432 sort -u); do | 432 sort -u); do |
433 [ "x${i##*/}" = "xld-linux.so" ] && continue | 433 [ "x${i##*/}" = "xld-linux.so" ] && continue |
434 [ -r "$i" ] && continue | 434 [ -r "$i" ] && continue |
435 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | | 435 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | |
436 sort -n | tail -n 1)" | 436 sort -n | tail -n 1)" |
437 [ -r "$i.$j" ] || continue | 437 [ -r "$i.$j" ] || continue |
438 sudo ln -s "${i##*/}.$j" "$i" | 438 sudo ln -s "${i##*/}.$j" "$i" |
439 done | 439 done |
440 fi | 440 fi |
OLD | NEW |