OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 # | 5 # |
6 | 6 |
7 """Download all Native Client toolchains for this platform. | 7 """Download all Native Client toolchains for this platform. |
8 | 8 |
9 This module downloads toolchain bz2's and expands them. It requires | 9 This module downloads toolchain bz2's and expands them. It requires |
10 gsutil to be in the bin PATH and assumes if building on windows that | 10 gsutil to be in the bin PATH and assumes if building on windows that |
11 cygwin is installed to \cygwin | 11 cygwin is installed to \cygwin |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 url = DetermineSdkURL(flavor, | 224 url = DetermineSdkURL(flavor, |
225 base_url='gs://nativeclient-mirror/nacl/nacl_sdk/', | 225 base_url='gs://nativeclient-mirror/nacl/nacl_sdk/', |
226 version=options.version) | 226 version=options.version) |
227 print 'SDK URL is "%s"' % url | 227 print 'SDK URL is "%s"' % url |
228 | 228 |
229 DownloadAndInstallSDK(url) | 229 DownloadAndInstallSDK(url) |
230 return 0 | 230 return 0 |
231 | 231 |
232 if __name__ == '__main__': | 232 if __name__ == '__main__': |
233 sys.exit(main(sys.argv[1:])) | 233 sys.exit(main(sys.argv[1:])) |
OLD | NEW |