| 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 on android, including | 7 # Script to install everything needed to build chromium on android, including |
| 8 # items requiring sudo privileges. | 8 # items requiring sudo privileges. |
| 9 # See http://code.google.com/p/chromium/wiki/AndroidBuildInstructions | 9 # See https://www.chromium.org/developers/how-tos/android-build-instructions |
| 10 | 10 |
| 11 # This script installs the sun-java6 packages (bin, jre and jdk). Sun requires | 11 # This script installs the sun-java6 packages (bin, jre and jdk). Sun requires |
| 12 # a license agreement, so upon installation it will prompt the user. To get | 12 # a license agreement, so upon installation it will prompt the user. To get |
| 13 # past the curses-based dialog press TAB <ret> TAB <ret> to agree. | 13 # past the curses-based dialog press TAB <ret> TAB <ret> to agree. |
| 14 | 14 |
| 15 args="$@" | 15 args="$@" |
| 16 | 16 |
| 17 if ! uname -m | egrep -q "i686|x86_64"; then | 17 if ! uname -m | egrep -q "i686|x86_64"; then |
| 18 echo "Only x86 architectures are currently supported" >&2 | 18 echo "Only x86 architectures are currently supported" >&2 |
| 19 exit | 19 exit |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 >& /dev/null | 80 >& /dev/null |
| 81 then | 81 then |
| 82 # If there are non-javaplugin.so errors, treat as errors and exit | 82 # If there are non-javaplugin.so errors, treat as errors and exit |
| 83 echo 'ERRORS: Failed to update alternatives for java-6-sun:' | 83 echo 'ERRORS: Failed to update alternatives for java-6-sun:' |
| 84 grep -v 'javaplugin.so' "${TEMPDIR}"/update-java-alternatives.out | 84 grep -v 'javaplugin.so' "${TEMPDIR}"/update-java-alternatives.out |
| 85 exit 1 | 85 exit 1 |
| 86 fi | 86 fi |
| 87 fi | 87 fi |
| 88 | 88 |
| 89 echo "install-build-deps-android.sh complete." | 89 echo "install-build-deps-android.sh complete." |
| OLD | NEW |