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 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
290 | 290 |
291 # Install 32bit backwards compatibility support for 64bit systems | 291 # Install 32bit backwards compatibility support for 64bit systems |
292 if [ "$(uname -m)" = "x86_64" ]; then | 292 if [ "$(uname -m)" = "x86_64" ]; then |
293 if test "$do_inst_lib32" != "1" | 293 if test "$do_inst_lib32" != "1" |
294 then | 294 then |
295 echo "NOTE: If you were expecting the option to install 32bit libs," | 295 echo "NOTE: If you were expecting the option to install 32bit libs," |
296 echo "please run with the --lib32 flag." | 296 echo "please run with the --lib32 flag." |
297 echo | 297 echo |
298 echo "Installation complete." | 298 echo "Installation complete." |
299 exit 0 | 299 exit 0 |
300 else | |
301 # This conditional statement has been added to deprecate and eventually | |
302 # remove support for 32bit libraries on 64bit systems. But for the time bein g, | |
Michael Moss
2013/04/23 16:02:30
nit: 80 chars here and next line.
Markus (顧孟勤)
2013/04/23 18:05:48
Done.
| |
303 # we still have to support a few legacy systems (e.g. bots), where this feat ure | |
304 # is needed. | |
305 # We only even give the user the option to install these libraries, if they | |
306 # explicitly requested doing so by setting the --lib32 command line flag. | |
307 # And even then, we interactively ask them one more time whether they are | |
308 # absolutely sure. | |
309 # In order for that to work, we must reset the ${do_inst_lib32} variable. | |
310 # There are other ways to achieve the same goal. But resetting the variable | |
311 # is the best way to document the intended behavior -- and to allow us to | |
312 # gradually deprecate and then remove the obsolete code. | |
313 do_inst_lib32= | |
300 fi | 314 fi |
301 | 315 |
302 echo "WARNING" | 316 echo "WARNING" |
303 echo | 317 echo |
304 echo "We no longer recommend that you use this script to install" | 318 echo "We no longer recommend that you use this script to install" |
305 echo "32bit libraries on a 64bit system. Instead, consider using the" | 319 echo "32bit libraries on a 64bit system. Instead, consider using the" |
306 echo "install-chroot.sh script to help you set up a 32bit environment" | 320 echo "install-chroot.sh script to help you set up a 32bit environment" |
307 echo "for building and testing 32bit versions of Chrome." | 321 echo "for building and testing 32bit versions of Chrome." |
308 echo | 322 echo |
309 echo "The code for installing 32bit libraries on a 64bit system is" | 323 echo "The code for installing 32bit libraries on a 64bit system is" |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
474 sed -e 's/[.]so[.][0-9].*/.so/' | | 488 sed -e 's/[.]so[.][0-9].*/.so/' | |
475 sort -u); do | 489 sort -u); do |
476 [ "x${i##*/}" = "xld-linux.so" ] && continue | 490 [ "x${i##*/}" = "xld-linux.so" ] && continue |
477 [ -r "$i" ] && continue | 491 [ -r "$i" ] && continue |
478 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | | 492 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | |
479 sort -n | tail -n 1)" | 493 sort -n | tail -n 1)" |
480 [ -r "$i.$j" ] || continue | 494 [ -r "$i.$j" ] || continue |
481 sudo ln -s "${i##*/}.$j" "$i" | 495 sudo ln -s "${i##*/}.$j" "$i" |
482 done | 496 done |
483 fi | 497 fi |
OLD | NEW |