Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 #!/usr/bin/env python | |
| 2 # Copyright 2016 The Chromium Authors. All rights reserved. | |
| 3 # Use of this source code is governed by a BSD-style license that can be | |
| 4 # found in the LICENSE file. | |
| 5 | |
| 6 """Minimal tool to download doclava from Google storage when building for | |
| 7 Android.""" | |
| 8 | |
| 9 import os | |
| 10 import subprocess | |
| 11 import sys | |
| 12 | |
| 13 | |
| 14 # Its existence signifies an Android checkout. | |
| 15 ANDROID_ONLY_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), | |
| 16 os.pardir, os.pardir, | |
| 17 'third_party', 'android_tools') | |
| 18 | |
| 19 | |
| 20 def main(): | |
| 21 if not os.path.exists(ANDROID_ONLY_DIR): | |
| 22 return 0 | |
| 23 subprocess.check_call([ | |
| 24 'download_from_google_storage', | |
| 25 '--no_resume', | |
| 26 '--no_auth', | |
| 27 '--bucket', 'chromium-doclava', | |
| 28 '--extract', | |
| 29 '-s', 'src/buildtools/android/doclava.tar.gz.sha1']) | |
|
jbudorick
2016/04/06 17:24:47
from the windows failure log, it looks like this c
pauljensen
2016/04/06 18:42:34
Done.
| |
| 30 return 0 | |
| 31 | |
| 32 if __name__ == '__main__': | |
| 33 sys.exit(main()) | |
| OLD | NEW |