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

Unified Diff: build/install-build-deps-android.sh

Issue 23426002: install-build-deps-android.sh complains about missing ant-1.8 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix nit Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/install-build-deps-android.sh
diff --git a/build/install-build-deps-android.sh b/build/install-build-deps-android.sh
index f6b445bae188f9377b44186f5da8971bae0bdccb..9417b1a76ab5f761c84aaead579982f2b8ba2576 100755
--- a/build/install-build-deps-android.sh
+++ b/build/install-build-deps-android.sh
@@ -49,8 +49,8 @@ sudo apt-get -y install lighttpd python-pexpect xvfb x11-utils
# Few binaries in the Android SDK require 32-bit libraries on the host.
sudo apt-get -y install lib32z1 g++-multilib
-if /usr/bin/lsb_release -r -s | grep -q "12."; then
- # Ubuntu 12.x
+if [ $(/usr/bin/lsb_release -r -s | cut -d"." -f1) -ge 12 ]; then
+ # Ubuntu >= 12.x
sudo apt-get -y install ant
# Java can not be installed via ppa on Ubuntu 12.04+ so we'll
« 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