Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 #!/usr/bin/env python | |
| 2 # Copyright 2014 The Chromium Authors. All rights reserved. | |
|
xunjieli
2016/02/12 19:14:43
nit: 2016
pauljensen
2016/02/12 19:20:59
Done.
| |
| 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 def main(): | |
| 15 if 'OS=android' not in os.environ.get('GYP_DEFINES', ''): | |
| 16 return 0 | |
| 17 subprocess.check_call([ | |
| 18 'download_from_google_storage', | |
| 19 '--no_resume', | |
| 20 '--no_auth', | |
| 21 '--bucket', 'chromium-doclava', | |
| 22 '--extract', | |
| 23 '-s', 'src/buildtools/android/doclava.tar.gz.sha1']) | |
| 24 return 0 | |
| 25 | |
| 26 if __name__ == '__main__': | |
| 27 sys.exit(main()) | |
| OLD | NEW |