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 30 matching lines...) Expand all Loading... |
41 if sudo touch xyz.$$ | 41 if sudo touch xyz.$$ |
42 then | 42 then |
43 sudo rm xyz.$$ | 43 sudo rm xyz.$$ |
44 else | 44 else |
45 echo root cannot write to the current directory, not installing gold | 45 echo root cannot write to the current directory, not installing gold |
46 return | 46 return |
47 fi | 47 fi |
48 | 48 |
49 BINUTILS=binutils-2.21.1 | 49 BINUTILS=binutils-2.21.1 |
50 BINUTILS_URL=http://ftp.gnu.org/gnu/binutils/$BINUTILS.tar.bz2 | 50 BINUTILS_URL=http://ftp.gnu.org/gnu/binutils/$BINUTILS.tar.bz2 |
51 BINUTILS_SHA1=f188490772cc902ec44a76545887bff60dbfa22d | 51 BINUTILS_SHA1=525255ca6874b872540c9967a1d26acfbc7c8230 |
52 | 52 |
53 test -f $BINUTILS.tar.bz2 || wget $BINUTILS_URL | 53 test -f $BINUTILS.tar.bz2 || wget $BINUTILS_URL |
54 if test "`sha1sum $BINUTILS.tar.bz2|cut -d' ' -f1`" != "$BINUTILS_SHA1" | 54 if test "`sha1sum $BINUTILS.tar.bz2|cut -d' ' -f1`" != "$BINUTILS_SHA1" |
55 then | 55 then |
56 echo Bad sha1sum for $BINUTILS.tar.bz2 | 56 echo Bad sha1sum for $BINUTILS.tar.bz2 |
57 exit 1 | 57 exit 1 |
58 fi | 58 fi |
59 | 59 |
60 tar -xjvf $BINUTILS.tar.bz2 | 60 tar -xjvf $BINUTILS.tar.bz2 |
61 cd $BINUTILS | 61 cd $BINUTILS |
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
456 sed -e 's/[.]so[.][0-9].*/.so/' | | 456 sed -e 's/[.]so[.][0-9].*/.so/' | |
457 sort -u); do | 457 sort -u); do |
458 [ "x${i##*/}" = "xld-linux.so" ] && continue | 458 [ "x${i##*/}" = "xld-linux.so" ] && continue |
459 [ -r "$i" ] && continue | 459 [ -r "$i" ] && continue |
460 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | | 460 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | |
461 sort -n | tail -n 1)" | 461 sort -n | tail -n 1)" |
462 [ -r "$i.$j" ] || continue | 462 [ -r "$i.$j" ] || continue |
463 sudo ln -s "${i##*/}.$j" "$i" | 463 sudo ln -s "${i##*/}.$j" "$i" |
464 done | 464 done |
465 fi | 465 fi |
OLD | NEW |