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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 do_inst_lib32=1 | 66 do_inst_lib32=1 |
67 fi | 67 fi |
68 | 68 |
69 # Check for lsb_release command in $PATH | 69 # Check for lsb_release command in $PATH |
70 if ! which lsb_release > /dev/null; then | 70 if ! which lsb_release > /dev/null; then |
71 echo "ERROR: lsb_release not found in \$PATH" >&2 | 71 echo "ERROR: lsb_release not found in \$PATH" >&2 |
72 exit 1; | 72 exit 1; |
73 fi | 73 fi |
74 | 74 |
75 lsb_release=$(lsb_release --codename --short) | 75 lsb_release=$(lsb_release --codename --short) |
76 ubuntu_codenames="(precise|quantal|raring|saucy|trusty)" | 76 ubuntu_codenames="(precise|quantal|raring|saucy|trusty|utopic)" |
77 if [ 0 -eq "${do_unsupported-0}" ] && [ 0 -eq "${do_quick_check-0}" ] ; then | 77 if [ 0 -eq "${do_unsupported-0}" ] && [ 0 -eq "${do_quick_check-0}" ] ; then |
78 if [[ ! $lsb_release =~ $ubuntu_codenames ]]; then | 78 if [[ ! $lsb_release =~ $ubuntu_codenames ]]; then |
79 echo "ERROR: Only Ubuntu 12.04 (precise) through 14.04 (trusty) are"\ | 79 echo "ERROR: Only Ubuntu 12.04 (precise) through 14.10 (utopic) are"\ |
80 "currently supported" >&2 | 80 "currently supported" >&2 |
81 exit 1 | 81 exit 1 |
82 fi | 82 fi |
83 | 83 |
84 if ! uname -m | egrep -q "i686|x86_64"; then | 84 if ! uname -m | egrep -q "i686|x86_64"; then |
85 echo "Only x86 architectures are currently supported" >&2 | 85 echo "Only x86 architectures are currently supported" >&2 |
86 exit | 86 exit |
87 fi | 87 fi |
88 fi | 88 fi |
89 | 89 |
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
418 echo "Installing symbolic links for NaCl." | 418 echo "Installing symbolic links for NaCl." |
419 if [ ! -r /usr/lib/i386-linux-gnu/libcrypto.so ]; then | 419 if [ ! -r /usr/lib/i386-linux-gnu/libcrypto.so ]; then |
420 sudo ln -fs libcrypto.so.0.9.8 /usr/lib/i386-linux-gnu/libcrypto.so | 420 sudo ln -fs libcrypto.so.0.9.8 /usr/lib/i386-linux-gnu/libcrypto.so |
421 fi | 421 fi |
422 if [ ! -r /usr/lib/i386-linux-gnu/libssl.so ]; then | 422 if [ ! -r /usr/lib/i386-linux-gnu/libssl.so ]; then |
423 sudo ln -fs libssl.so.0.9.8 /usr/lib/i386-linux-gnu/libssl.so | 423 sudo ln -fs libssl.so.0.9.8 /usr/lib/i386-linux-gnu/libssl.so |
424 fi | 424 fi |
425 else | 425 else |
426 echo "Skipping symbolic links for NaCl." | 426 echo "Skipping symbolic links for NaCl." |
427 fi | 427 fi |
OLD | NEW |