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 29 matching lines...) Expand all Loading... |
40 --no-chromeos-fonts) do_inst_chromeos_fonts=0;; | 40 --no-chromeos-fonts) do_inst_chromeos_fonts=0;; |
41 --no-prompt) do_default=1 | 41 --no-prompt) do_default=1 |
42 do_quietly="-qq --assume-yes" | 42 do_quietly="-qq --assume-yes" |
43 ;; | 43 ;; |
44 --unsupported) do_unsupported=1;; | 44 --unsupported) do_unsupported=1;; |
45 *) usage;; | 45 *) usage;; |
46 esac | 46 esac |
47 shift | 47 shift |
48 done | 48 done |
49 | 49 |
50 ubuntu_versions="10\.04|10\.10|11\.04|11\.10|12\.04|12\.10|13\.04" | 50 ubuntu_versions="12\.04|12\.10|13\.04" |
51 ubuntu_codenames="lucid|maverick|natty|oneiric|precise|quantal|raring" | 51 ubuntu_codenames="precise|quantal|raring" |
52 ubuntu_issue="Ubuntu ($ubuntu_versions|$ubuntu_codenames)" | 52 ubuntu_issue="Ubuntu ($ubuntu_versions|$ubuntu_codenames)" |
53 # GCEL is an Ubuntu-derived VM image used on Google Compute Engine; /etc/issue | 53 # GCEL is an Ubuntu-derived VM image used on Google Compute Engine; /etc/issue |
54 # doesn't contain a version number so just trust that the user knows what | 54 # doesn't contain a version number so just trust that the user knows what |
55 # they're doing. | 55 # they're doing. |
56 gcel_issue="^GCEL" | 56 gcel_issue="^GCEL" |
57 | 57 |
58 if [ 0 -eq "${do_unsupported-0}" ] ; then | 58 if [ 0 -eq "${do_unsupported-0}" ] ; then |
59 if ! egrep -q "($ubuntu_issue|$gcel_issue)" /etc/issue; then | 59 if ! egrep -q "($ubuntu_issue|$gcel_issue)" /etc/issue; then |
60 echo "ERROR: Only Ubuntu 10.04 (lucid) through 13.04 (raring) are"\ | 60 echo "ERROR: Only Ubuntu 12.04 (precise) through 13.04 (raring) are"\ |
61 "currently supported" >&2 | 61 "currently supported" >&2 |
62 exit 1 | 62 exit 1 |
63 fi | 63 fi |
64 | 64 |
65 if ! uname -m | egrep -q "i686|x86_64"; then | 65 if ! uname -m | egrep -q "i686|x86_64"; then |
66 echo "Only x86 architectures are currently supported" >&2 | 66 echo "Only x86 architectures are currently supported" >&2 |
67 exit | 67 exit |
68 fi | 68 fi |
69 fi | 69 fi |
70 | 70 |
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
507 sed -e 's/[.]so[.][0-9].*/.so/' | | 507 sed -e 's/[.]so[.][0-9].*/.so/' | |
508 sort -u); do | 508 sort -u); do |
509 [ "x${i##*/}" = "xld-linux.so" ] && continue | 509 [ "x${i##*/}" = "xld-linux.so" ] && continue |
510 [ -r "$i" ] && continue | 510 [ -r "$i" ] && continue |
511 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | | 511 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | |
512 sort -n | tail -n 1)" | 512 sort -n | tail -n 1)" |
513 [ -r "$i.$j" ] || continue | 513 [ -r "$i.$j" ] || continue |
514 sudo ln -s "${i##*/}.$j" "$i" | 514 sudo ln -s "${i##*/}.$j" "$i" |
515 done | 515 done |
516 fi | 516 fi |
OLD | NEW |