OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2015 the V8 project authors. All rights reserved. | 2 # Copyright 2015 the V8 project authors. All rights reserved. |
3 # Copyright 2015 The Chromium Authors. All rights reserved. | 3 # Copyright 2015 The Chromium Authors. All rights reserved. |
4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
6 | 6 |
7 """Script to download LLVM gold plugin from google storage.""" | 7 """Script to download LLVM gold plugin from google storage.""" |
8 | 8 |
9 import json | 9 import json |
10 import os | 10 import os |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 # stdin->stderr redirect in update.py to do something else (crbug.com/494442). | 72 # stdin->stderr redirect in update.py to do something else (crbug.com/494442). |
73 subprocess.check_call(['python', GSUTIL_PATH, | 73 subprocess.check_call(['python', GSUTIL_PATH, |
74 'cp', remote_path, targz_name], | 74 'cp', remote_path, targz_name], |
75 stderr=open('/dev/null', 'w')) | 75 stderr=open('/dev/null', 'w')) |
76 subprocess.check_call(['tar', 'xzf', targz_name]) | 76 subprocess.check_call(['tar', 'xzf', targz_name]) |
77 os.remove(targz_name) | 77 os.remove(targz_name) |
78 return 0 | 78 return 0 |
79 | 79 |
80 if __name__ == '__main__': | 80 if __name__ == '__main__': |
81 sys.exit(main()) | 81 sys.exit(main()) |
OLD | NEW |