Index: platform_tools/android/bin/download_toolchains.py |
diff --git a/platform_tools/android/bin/download_toolchains.py b/platform_tools/android/bin/download_toolchains.py |
new file mode 100755 |
index 0000000000000000000000000000000000000000..9922283dc07be4426ba0ec309cd4eb5c244e5fbe |
--- /dev/null |
+++ b/platform_tools/android/bin/download_toolchains.py |
@@ -0,0 +1,19 @@ |
+#!/usr/bin/python |
+ |
+"""Download all toolchains for this platform. |
+ |
+This module downloads multiple tgz's. |
+""" |
+ |
+import download_utils |
+import sys |
+ |
+url = sys.argv[1] |
+filepath = sys.argv[2] |
+ |
+try: |
+ download_utils.SyncURL(url, filepath) |
+ exit(0) |
+except download_utils.HashError, e: |
+ exit(1) |
+ |