| 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|trusty|utopic)" | 76 ubuntu_codenames="(precise|trusty|utopic|vivid)" |
| 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), 14.04 (trusty) and " \ | 79 echo "ERROR: Only Ubuntu 12.04 (precise), 14.04 (trusty), " \ |
| 80 "14.10 (utopic) are currently supported" >&2 | 80 "14.10 (utopic) and 15.04 (vivid) are 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 |
| 90 if [ "x$(id -u)" != x0 ] && [ 0 -eq "${do_quick_check-0}" ]; then | 90 if [ "x$(id -u)" != x0 ] && [ 0 -eq "${do_quick_check-0}" ]; then |
| (...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 452 # only contains libcrypto.so.1.0.0 and not the symlink needed for | 452 # only contains libcrypto.so.1.0.0 and not the symlink needed for |
| 453 # linking (libcrypto.so). | 453 # linking (libcrypto.so). |
| 454 create_library_symlink /lib/i386-linux-gnu/libcrypto.so.1.0.0 \ | 454 create_library_symlink /lib/i386-linux-gnu/libcrypto.so.1.0.0 \ |
| 455 /usr/lib/i386-linux-gnu/libcrypto.so | 455 /usr/lib/i386-linux-gnu/libcrypto.so |
| 456 | 456 |
| 457 create_library_symlink /lib/i386-linux-gnu/libssl.so.1.0.0 \ | 457 create_library_symlink /lib/i386-linux-gnu/libssl.so.1.0.0 \ |
| 458 /usr/lib/i386-linux-gnu/libssl.so | 458 /usr/lib/i386-linux-gnu/libssl.so |
| 459 else | 459 else |
| 460 echo "Skipping symbolic links for NaCl." | 460 echo "Skipping symbolic links for NaCl." |
| 461 fi | 461 fi |
| OLD | NEW |