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

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: 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
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 execfile("./../DEPS"); get_sdk_extras(hooks)')"
90 for package in "${packages}"; do
91 package_num=$(../third_party/android_tools/sdk/tools/android list sdk \
92 | grep -i "$package," \
93 | awk '/^[ ]*[0-9]*- / {gsub("-",""); print $1}')
94 if [[ -n ${package_num} ]]; then
95 ../third_party/android_tools/sdk/tools/android update sdk --no-ui --filter \
96 ${package_num}
97 fi
98 done
99
87 echo "install-build-deps-android.sh complete." 100 echo "install-build-deps-android.sh complete."
OLDNEW
« build/get_sdk_extras_packages.py ('K') | « build/get_sdk_extras_packages.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698