| 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 12 matching lines...) Expand all Loading... |
| 23 --syms) do_inst_syms=1;; | 23 --syms) do_inst_syms=1;; |
| 24 --no-syms) do_inst_syms=0;; | 24 --no-syms) do_inst_syms=0;; |
| 25 --lib32) do_inst_lib32=1;; | 25 --lib32) do_inst_lib32=1;; |
| 26 --no-lib32) do_inst_lib32=0;; | 26 --no-lib32) do_inst_lib32=0;; |
| 27 *) usage;; | 27 *) usage;; |
| 28 esac | 28 esac |
| 29 shift | 29 shift |
| 30 done | 30 done |
| 31 | 31 |
| 32 if ! egrep -q \ | 32 if ! egrep -q \ |
| 33 'Ubuntu (10\.04|10\.10|11\.04|11\.10|lucid|maverick|natty|oneiric)' \ | 33 'Ubuntu (10\.04|10\.10|11\.04|11\.10|12\.04|lucid|maverick|natty|oneiric|pre
cise)' \ |
| 34 /etc/issue; then | 34 /etc/issue; then |
| 35 echo "Only Ubuntu 10.04 (lucid) through 11.10 (oneiric) are currently" \ | 35 echo "Only Ubuntu 10.04 (lucid) through 11.10 (oneiric) are currently" \ |
| 36 "supported" >&2 | 36 "supported" >&2 |
| 37 exit 1 | 37 exit 1 |
| 38 fi | 38 fi |
| 39 | 39 |
| 40 if ! uname -m | egrep -q "i686|x86_64"; then | 40 if ! uname -m | egrep -q "i686|x86_64"; then |
| 41 echo "Only x86 architectures are currently supported" >&2 | 41 echo "Only x86 architectures are currently supported" >&2 |
| 42 exit | 42 exit |
| 43 fi | 43 fi |
| (...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 sed -e 's/[.]so[.][0-9].*/.so/' | | 378 sed -e 's/[.]so[.][0-9].*/.so/' | |
| 379 sort -u); do | 379 sort -u); do |
| 380 [ "x${i##*/}" = "xld-linux.so" ] && continue | 380 [ "x${i##*/}" = "xld-linux.so" ] && continue |
| 381 [ -r "$i" ] && continue | 381 [ -r "$i" ] && continue |
| 382 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | | 382 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | |
| 383 sort -n | tail -n 1)" | 383 sort -n | tail -n 1)" |
| 384 [ -r "$i.$j" ] || continue | 384 [ -r "$i.$j" ] || continue |
| 385 sudo ln -s "${i##*/}.$j" "$i" | 385 sudo ln -s "${i##*/}.$j" "$i" |
| 386 done | 386 done |
| 387 fi | 387 fi |
| OLD | NEW |