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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 test -f /usr/bin/ld && test ! -f /usr/bin/ld.orig && \ | 109 test -f /usr/bin/ld && test ! -f /usr/bin/ld.orig && \ |
110 sudo mv /usr/bin/ld /usr/bin/ld.orig | 110 sudo mv /usr/bin/ld /usr/bin/ld.orig |
111 sudo strip /usr/local/gold/bin/ld | 111 sudo strip /usr/local/gold/bin/ld |
112 sudo ln -fs /usr/local/gold/bin/ld /usr/bin/ld.gold | 112 sudo ln -fs /usr/local/gold/bin/ld /usr/bin/ld.gold |
113 sudo ln -fs /usr/bin/ld.gold /usr/bin/ld | 113 sudo ln -fs /usr/bin/ld.gold /usr/bin/ld |
114 else | 114 else |
115 echo "make install failed, not installing gold" | 115 echo "make install failed, not installing gold" |
116 fi | 116 fi |
117 } | 117 } |
118 | 118 |
119 if ! egrep -q 'Ubuntu (8\.04|8\.10|9\.04|9\.10)' /etc/issue; then | 119 if ! egrep -q 'Ubuntu (8\.04|8\.10|9\.04|9\.10|karmic|lucid)' /etc/issue; then |
120 echo "Only Ubuntu 8.04, 8.10, 9.04, and 9.10 are currently supported" >&2 | 120 echo "Only Ubuntu 8.04, 8.10, 9.04, and 9.10 are currently supported" >&2 |
121 exit 1 | 121 exit 1 |
122 fi | 122 fi |
123 | 123 |
124 if ! uname -m | egrep -q "i686|x86_64"; then | 124 if ! uname -m | egrep -q "i686|x86_64"; then |
125 echo "Only x86 architectures are currently supported" >&2 | 125 echo "Only x86 architectures are currently supported" >&2 |
126 exit | 126 exit |
127 fi | 127 fi |
128 | 128 |
129 if [ "x$(id -u)" != x0 ]; then | 129 if [ "x$(id -u)" != x0 ]; then |
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
432 sed -e 's/[.]so[.][0-9].*/.so/' | | 432 sed -e 's/[.]so[.][0-9].*/.so/' | |
433 sort -u); do | 433 sort -u); do |
434 [ "x${i##*/}" = "xld-linux.so" ] && continue | 434 [ "x${i##*/}" = "xld-linux.so" ] && continue |
435 [ -r "$i" ] && continue | 435 [ -r "$i" ] && continue |
436 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | | 436 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | |
437 sort -n | tail -n 1)" | 437 sort -n | tail -n 1)" |
438 [ -r "$i.$j" ] || continue | 438 [ -r "$i.$j" ] || continue |
439 sudo ln -s "${i##*/}.$j" "$i" | 439 sudo ln -s "${i##*/}.$j" "$i" |
440 done | 440 done |
441 fi | 441 fi |
OLD | NEW |