OLD | NEW |
1 #!/bin/bash -e | 1 #!/bin/bash -e |
2 | 2 |
| 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 |
| 5 # found in the LICENSE file. |
| 6 |
3 # Script to install everything needed to build chromium (well, ideally, anyway) | 7 # Script to install everything needed to build chromium (well, ideally, anyway) |
4 # See http://code.google.com/p/chromium/wiki/LinuxBuildInstructions | 8 # See http://code.google.com/p/chromium/wiki/LinuxBuildInstructions |
5 # and http://code.google.com/p/chromium/wiki/LinuxBuild64Bit | 9 # and http://code.google.com/p/chromium/wiki/LinuxBuild64Bit |
6 | 10 |
7 install_gold() { | 11 install_gold() { |
8 # Gold is optional; it's a faster replacement for ld, | 12 # Gold is optional; it's a faster replacement for ld, |
9 # and makes life on 2GB machines much more pleasant. | 13 # and makes life on 2GB machines much more pleasant. |
10 | 14 |
11 # First make sure root can access this directory, as that's tripped up some fo
lks. | 15 # First make sure root can access this directory, as that's tripped up some fo
lks. |
12 if sudo touch xyz.$$ | 16 if sudo touch xyz.$$ |
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
357 sed -e 's/[.]so[.][0-9].*/.so/' | | 361 sed -e 's/[.]so[.][0-9].*/.so/' | |
358 sort -u); do | 362 sort -u); do |
359 [ "x${i##*/}" = "xld-linux.so" ] && continue | 363 [ "x${i##*/}" = "xld-linux.so" ] && continue |
360 [ -r "$i" ] && continue | 364 [ -r "$i" ] && continue |
361 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | | 365 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | |
362 sort -n | tail -n 1)" | 366 sort -n | tail -n 1)" |
363 [ -r "$i.$j" ] || continue | 367 [ -r "$i.$j" ] || continue |
364 sudo ln -s "${i##*/}.$j" "$i" | 368 sudo ln -s "${i##*/}.$j" "$i" |
365 done | 369 done |
366 fi | 370 fi |
OLD | NEW |