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..dd671d3b83c74b1d5a268d0b858441f254b5c1f4 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 |
Nico
2013/08/28 20:15:41
we prefer $(foo) over `foo`, lgtm with that change
do-not-use
2013/08/28 20:28:40
Done.
|
+ # Ubuntu >= 12.x |
sudo apt-get -y install ant |
# Java can not be installed via ppa on Ubuntu 12.04+ so we'll |