Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(222)

Side by Side Diff: build/install-build-deps.sh

Issue 11863012: Add unsupported option to install-build-deps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix spelling Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 13 matching lines...) Expand all
24 case "$1" in 24 case "$1" in
25 --syms) do_inst_syms=1;; 25 --syms) do_inst_syms=1;;
26 --no-syms) do_inst_syms=0;; 26 --no-syms) do_inst_syms=0;;
27 --lib32) do_inst_lib32=1;; 27 --lib32) do_inst_lib32=1;;
28 --no-lib32) do_inst_lib32=0;; 28 --no-lib32) do_inst_lib32=0;;
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 --unsupported) do_unsupported=1;;
34 *) usage;; 35 *) usage;;
35 esac 36 esac
36 shift 37 shift
37 done 38 done
38 39
39 ubuntu_versions="10\.04|10\.10|11\.04|11\.10|12\.04|12\.10" 40 ubuntu_versions="10\.04|10\.10|11\.04|11\.10|12\.04|12\.10"
40 ubuntu_codenames="lucid|maverick|natty|oneiric|precise|quantal" 41 ubuntu_codenames="lucid|maverick|natty|oneiric|precise|quantal"
42 ubuntu_issue="Ubuntu ($ubuntu_versions|$ubuntu_codenames)"
43 # GCEL is an Ubuntu-derived VM image used on Google Compute Engine; /etc/issue
44 # doesn't contain a version number so just trust that the user knows what
45 # they're doing.
46 gcel_issue="^GCEL"
41 47
42 if ! egrep -q "Ubuntu ($ubuntu_versions|$ubuntu_codenames)" /etc/issue; then 48 if [ 0 -eq "${do_unsupported-0}" ] ; then
43 echo "ERROR: Only Ubuntu 10.04 (lucid) through 12.10 (quantal) are currently"\ 49 if ! egrep -q "($ubuntu_issue|$gcel_issue)" /etc/issue; then
44 "supported" >&2 50 echo "ERROR: Only Ubuntu 10.04 (lucid) through 12.10 (quantal) are"\
45 exit 1 51 "currently supported" >&2
46 fi 52 exit 1
53 fi
47 54
48 if ! uname -m | egrep -q "i686|x86_64"; then 55 if ! uname -m | egrep -q "i686|x86_64"; then
49 echo "Only x86 architectures are currently supported" >&2 56 echo "Only x86 architectures are currently supported" >&2
50 exit 57 exit
58 fi
51 fi 59 fi
52 60
53 if [ "x$(id -u)" != x0 ]; then 61 if [ "x$(id -u)" != x0 ]; then
54 echo "Running as non-root user." 62 echo "Running as non-root user."
55 echo "You might have to enter your password one or more times for 'sudo'." 63 echo "You might have to enter your password one or more times for 'sudo'."
56 echo 64 echo
57 fi 65 fi
58 66
59 # Packages needed for chromeos only 67 # Packages needed for chromeos only
60 chromeos_dev_list="libbluetooth-dev libpulse-dev" 68 chromeos_dev_list="libbluetooth-dev libpulse-dev"
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 sed -e 's/[.]so[.][0-9].*/.so/' | 450 sed -e 's/[.]so[.][0-9].*/.so/' |
443 sort -u); do 451 sort -u); do
444 [ "x${i##*/}" = "xld-linux.so" ] && continue 452 [ "x${i##*/}" = "xld-linux.so" ] && continue
445 [ -r "$i" ] && continue 453 [ -r "$i" ] && continue
446 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | 454 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' |
447 sort -n | tail -n 1)" 455 sort -n | tail -n 1)"
448 [ -r "$i.$j" ] || continue 456 [ -r "$i.$j" ] || continue
449 sudo ln -s "${i##*/}.$j" "$i" 457 sudo ln -s "${i##*/}.$j" "$i"
450 done 458 done
451 fi 459 fi
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698