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 that | 7 # Script to install everything needed to build chromium on android that |
8 # requires sudo privileges. | 8 # requires sudo privileges. |
9 # See http://code.google.com/p/chromium/wiki/AndroidBuildInstructions | 9 # See http://code.google.com/p/chromium/wiki/AndroidBuildInstructions |
10 | 10 |
(...skipping 26 matching lines...) Expand all Loading... |
37 | 37 |
38 # Fix deps | 38 # Fix deps |
39 sudo apt-get -f install | 39 sudo apt-get -f install |
40 | 40 |
41 # Install deps | 41 # Install deps |
42 # This step differs depending on what Ubuntu release we are running | 42 # This step differs depending on what Ubuntu release we are running |
43 # on since the package names are different, and Sun's Java must | 43 # on since the package names are different, and Sun's Java must |
44 # be installed manually on late-model versions. | 44 # be installed manually on late-model versions. |
45 | 45 |
46 # common | 46 # common |
47 sudo apt-get -y install python-pexpect xvfb x11-utils | 47 sudo apt-get -y install lighttpd python-pexpect xvfb x11-utils |
48 | 48 |
49 if /usr/bin/lsb_release -r -s | grep -q "12."; then | 49 if /usr/bin/lsb_release -r -s | grep -q "12."; then |
50 # Ubuntu 12.x | 50 # Ubuntu 12.x |
51 sudo apt-get -y install ant | 51 sudo apt-get -y install ant |
52 | 52 |
53 # Java can not be installed via ppa on Ubuntu 12.04+ so we'll | 53 # Java can not be installed via ppa on Ubuntu 12.04+ so we'll |
54 # simply check to see if it has been setup properly -- if not | 54 # simply check to see if it has been setup properly -- if not |
55 # let the user know. | 55 # let the user know. |
56 | 56 |
57 if ! java -version 2>&1 | grep -q "Java(TM)"; then | 57 if ! java -version 2>&1 | grep -q "Java(TM)"; then |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 then | 92 then |
93 # If there are non-javaplugin.so errors, treat as errors and exit | 93 # If there are non-javaplugin.so errors, treat as errors and exit |
94 echo 'ERRORS: Failed to update alternatives for java-6-sun:' | 94 echo 'ERRORS: Failed to update alternatives for java-6-sun:' |
95 grep -v 'javaplugin.so' "${TEMPDIR}"/update-java-alternatives.out | 95 grep -v 'javaplugin.so' "${TEMPDIR}"/update-java-alternatives.out |
96 exit 1 | 96 exit 1 |
97 fi | 97 fi |
98 fi | 98 fi |
99 fi | 99 fi |
100 | 100 |
101 echo "install-build-deps-android.sh complete." | 101 echo "install-build-deps-android.sh complete." |
OLD | NEW |