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

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

Issue 918043004: Add apktool and apktool.jar to install-build-deps-android.sh (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unnecessary slash character. Created 5 years, 10 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 | « 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, 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 http://code.google.com/p/chromium/wiki/AndroidBuildInstructions
10 10
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 grep -v 'javaplugin.so' "${TEMPDIR}"/update-java-alternatives.out 90 grep -v 'javaplugin.so' "${TEMPDIR}"/update-java-alternatives.out
91 exit 1 91 exit 1
92 fi 92 fi
93 fi 93 fi
94 94
95 # Install SDK packages for android 95 # Install SDK packages for android
96 if test "$skip_inst_sdk_packages" != 1; then 96 if test "$skip_inst_sdk_packages" != 1; then
97 "$(dirname "${BASH_SOURCE[0]}")/install-android-sdks.sh" 97 "$(dirname "${BASH_SOURCE[0]}")/install-android-sdks.sh"
98 fi 98 fi
99 99
100 DownloadBinary() {
101 bin=$1
102 path=$2
103 url=$3
104 tmpfile=${bin}_$(/bin/date +%s)
105 if [ ! -x ${path}/${bin} ]; then
106 /usr/bin/wget -qO ${tmpfile} ${url}
107 /usr/bin/sudo /bin/mv ${tmpfile} ${path}/${bin}
108 /usr/bin/sudo /bin/chmod a+x ${path}/${bin}
109 /usr/bin/sudo /bin/chown root:root ${path}/${bin}
110 fi
111 }
112
113 url='https://raw.githubusercontent.com'
114 uri='iBotPeaches/Apktool/master/scripts/linux/apktool'
115 DownloadBinary apktool /usr/local/bin ${url}/${uri}
friedman1 2015/02/13 00:11:11 DownloadBinary apktool /usr/local/bin \ https://ra
116
117 url='https://bitbucket.org'
118 uri='iBotPeaches/apktool/downloads/apktool_2.0.0rc3.jar'
119 DownloadBinary apktool.jar /usr/local/bin ${url}/${uri}
120
100 echo "install-build-deps-android.sh complete." 121 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