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

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

Issue 302553010: Fix up installation of ant package (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/build/
Patch Set: Created 6 years, 7 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 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 29 matching lines...) Expand all
40 # This step differs depending on what Ubuntu release we are running 40 # This step differs depending on what Ubuntu release we are running
41 # on since the package names are different, and Sun's Java must 41 # on since the package names are different, and Sun's Java must
42 # be installed manually on late-model versions. 42 # be installed manually on late-model versions.
43 43
44 # common 44 # common
45 sudo apt-get -y install checkstyle lighttpd python-pexpect xvfb x11-utils 45 sudo apt-get -y install checkstyle lighttpd python-pexpect xvfb x11-utils
46 46
47 # Few binaries in the Android SDK require 32-bit libraries on the host. 47 # Few binaries in the Android SDK require 32-bit libraries on the host.
48 sudo apt-get -y install lib32z1 g++-multilib 48 sudo apt-get -y install lib32z1 g++-multilib
49 49
50 sudo apt-get -y install ant1.8 50 sudo apt-get -y install ant
51 51
52 # Install openjdk and openjre 7 stuff 52 # Install openjdk and openjre 7 stuff
53 sudo apt-get -y install openjdk-7-jre openjdk-7-jdk 53 sudo apt-get -y install openjdk-7-jre openjdk-7-jdk
54 54
55 # Switch version of Java to openjdk 7. 55 # Switch version of Java to openjdk 7.
56 # Some Java plugins (e.g. for firefox, mozilla) are not required to build, and 56 # Some Java plugins (e.g. for firefox, mozilla) are not required to build, and
57 # thus are treated only as warnings. Any errors in updating java alternatives 57 # thus are treated only as warnings. Any errors in updating java alternatives
58 # which are not '*-javaplugin.so' will cause errors and stop the script from 58 # which are not '*-javaplugin.so' will cause errors and stop the script from
59 # completing successfully. 59 # completing successfully.
60 if ! sudo update-java-alternatives -s java-1.7.0-openjdk-amd64 \ 60 if ! sudo update-java-alternatives -s java-1.7.0-openjdk-amd64 \
(...skipping 12 matching lines...) Expand all
73 >& /dev/null 73 >& /dev/null
74 then 74 then
75 # If there are non-javaplugin.so errors, treat as errors and exit 75 # If there are non-javaplugin.so errors, treat as errors and exit
76 echo 'ERRORS: Failed to update alternatives for java-6-sun:' 76 echo 'ERRORS: Failed to update alternatives for java-6-sun:'
77 grep -v 'javaplugin.so' "${TEMPDIR}"/update-java-alternatives.out 77 grep -v 'javaplugin.so' "${TEMPDIR}"/update-java-alternatives.out
78 exit 1 78 exit 1
79 fi 79 fi
80 fi 80 fi
81 81
82 echo "install-build-deps-android.sh complete." 82 echo "install-build-deps-android.sh complete."
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