| 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 18 matching lines...) Expand all Loading... |
| 29 --arm) do_inst_arm=1;; | 29 --arm) do_inst_arm=1;; |
| 30 --no-arm) do_inst_arm=0;; | 30 --no-arm) do_inst_arm=0;; |
| 31 --no-prompt) do_default=1 | 31 --no-prompt) do_default=1 |
| 32 do_quietly="-qq --assume-yes" | 32 do_quietly="-qq --assume-yes" |
| 33 ;; | 33 ;; |
| 34 *) usage;; | 34 *) usage;; |
| 35 esac | 35 esac |
| 36 shift | 36 shift |
| 37 done | 37 done |
| 38 | 38 |
| 39 ubuntu_versions="10\.04|10\.10|11\.04|11\.10|12\.04" | 39 ubuntu_versions="10\.04|10\.10|11\.04|11\.10|12\.04|12\.10" |
| 40 ubuntu_codenames="lucid|maverick|natty|oneiric|precise" | 40 ubuntu_codenames="lucid|maverick|natty|oneiric|precise|quantal" |
| 41 | 41 |
| 42 if ! egrep -q "Ubuntu ($ubuntu_versions|$ubuntu_codenames)" /etc/issue; then | 42 if ! egrep -q "Ubuntu ($ubuntu_versions|$ubuntu_codenames)" /etc/issue; then |
| 43 echo "ERROR: Only Ubuntu 10.04 (lucid) through 12.04 (precise) are currently"\ | 43 echo "ERROR: Only Ubuntu 10.04 (lucid) through 12.10 (quantal) are currently"\ |
| 44 "supported" >&2 | 44 "supported" >&2 |
| 45 exit 1 | 45 exit 1 |
| 46 fi | 46 fi |
| 47 | 47 |
| 48 if ! uname -m | egrep -q "i686|x86_64"; then | 48 if ! uname -m | egrep -q "i686|x86_64"; then |
| 49 echo "Only x86 architectures are currently supported" >&2 | 49 echo "Only x86 architectures are currently supported" >&2 |
| 50 exit | 50 exit |
| 51 fi | 51 fi |
| 52 | 52 |
| 53 if [ "x$(id -u)" != x0 ]; then | 53 if [ "x$(id -u)" != x0 ]; then |
| (...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 442 sed -e 's/[.]so[.][0-9].*/.so/' | | 442 sed -e 's/[.]so[.][0-9].*/.so/' | |
| 443 sort -u); do | 443 sort -u); do |
| 444 [ "x${i##*/}" = "xld-linux.so" ] && continue | 444 [ "x${i##*/}" = "xld-linux.so" ] && continue |
| 445 [ -r "$i" ] && continue | 445 [ -r "$i" ] && continue |
| 446 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | | 446 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | |
| 447 sort -n | tail -n 1)" | 447 sort -n | tail -n 1)" |
| 448 [ -r "$i.$j" ] || continue | 448 [ -r "$i.$j" ] || continue |
| 449 sudo ln -s "${i##*/}.$j" "$i" | 449 sudo ln -s "${i##*/}.$j" "$i" |
| 450 done | 450 done |
| 451 fi | 451 fi |
| OLD | NEW |