| 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 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 else | 278 else |
| 279 echo "Failed to restore /usr/bin/ld.orig as /usr/bin/ld" | 279 echo "Failed to restore /usr/bin/ld.orig as /usr/bin/ld" |
| 280 fi | 280 fi |
| 281 echo | 281 echo |
| 282 fi | 282 fi |
| 283 ;; | 283 ;; |
| 284 esac | 284 esac |
| 285 | 285 |
| 286 # Check the gold version first. | 286 # Check the gold version first. |
| 287 gold_up_to_date="1" | 287 gold_up_to_date="1" |
| 288 case `/usr/local/gold/bin/ld --version` in | 288 if [ -x "/usr/local/gold/bin/ld" ] |
| 289 *gold*2.2[1-9].*) ;; | 289 then |
| 290 * ) | 290 case `/usr/local/gold/bin/ld --version` in |
| 291 gold_up_to_date="0" | 291 *gold*2.2[1-9].*) ;; |
| 292 esac | 292 * ) |
| 293 gold_up_to_date="0" |
| 294 esac |
| 295 fi |
| 293 | 296 |
| 294 # Then check and make sure ld.bfd exists. | 297 # Then check and make sure ld.bfd exists. |
| 295 if [ "$gold_up_to_date" = "1" ] && [ ! -x "/usr/local/gold/bin/ld.bfd" ] | 298 if [ "$gold_up_to_date" = "1" ] && [ ! -x "/usr/local/gold/bin/ld.bfd" ] |
| 296 then | 299 then |
| 297 gold_up_to_date="0" | 300 gold_up_to_date="0" |
| 298 fi | 301 fi |
| 299 | 302 |
| 300 if [ "$gold_up_to_date" = "0" ] | 303 if [ "$gold_up_to_date" = "0" ] |
| 301 then | 304 then |
| 302 if test "$do_inst_gold" = "" | 305 if test "$do_inst_gold" = "" |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 501 sed -e 's/[.]so[.][0-9].*/.so/' | | 504 sed -e 's/[.]so[.][0-9].*/.so/' | |
| 502 sort -u); do | 505 sort -u); do |
| 503 [ "x${i##*/}" = "xld-linux.so" ] && continue | 506 [ "x${i##*/}" = "xld-linux.so" ] && continue |
| 504 [ -r "$i" ] && continue | 507 [ -r "$i" ] && continue |
| 505 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | | 508 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | |
| 506 sort -n | tail -n 1)" | 509 sort -n | tail -n 1)" |
| 507 [ -r "$i.$j" ] || continue | 510 [ -r "$i.$j" ] || continue |
| 508 sudo ln -s "${i##*/}.$j" "$i" | 511 sudo ln -s "${i##*/}.$j" "$i" |
| 509 done | 512 done |
| 510 fi | 513 fi |
| OLD | NEW |