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

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

Issue 838733002: Install sdk extras packages using android to prompt for ToS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address friedman nit. Created 5 years, 11 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
« no previous file with comments | « build/get_sdk_extras_packages.py ('k') | 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 if grep -v 'javaplugin.so' "${TEMPDIR}"/update-java-alternatives.out \ 77 if grep -v 'javaplugin.so' "${TEMPDIR}"/update-java-alternatives.out \
78 >& /dev/null 78 >& /dev/null
79 then 79 then
80 # If there are non-javaplugin.so errors, treat as errors and exit 80 # If there are non-javaplugin.so errors, treat as errors and exit
81 echo 'ERRORS: Failed to update alternatives for java-6-sun:' 81 echo 'ERRORS: Failed to update alternatives for java-6-sun:'
82 grep -v 'javaplugin.so' "${TEMPDIR}"/update-java-alternatives.out 82 grep -v 'javaplugin.so' "${TEMPDIR}"/update-java-alternatives.out
83 exit 1 83 exit 1
84 fi 84 fi
85 fi 85 fi
86 86
87 # Get the SDK extras packages to install from the DEPS file 'sdkextras' hook.
88 packages="$(python -c 'execfile("./get_sdk_extras_packages.py")')"
89 for package in "${packages}"; do
90 package_num=$(../third_party/android_tools/sdk/tools/android list sdk | \
91 grep -i "$package," | \
92 awk '/^[ ]*[0-9]*- / {gsub("-",""); print $1}')
93 if [[ -n ${package_num} ]]; then
94 ../third_party/android_tools/sdk/tools/android update sdk --no-ui --filter \
95 ${package_num}
96 fi
97 done
98
87 echo "install-build-deps-android.sh complete." 99 echo "install-build-deps-android.sh complete."
OLDNEW
« no previous file with comments | « build/get_sdk_extras_packages.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698