OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2013 The Chromium Authors. All rights reserved. | 2 # Copyright 2013 The Chromium 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 """Downloads and unpacks a toolchain for building on Windows. The contents are | 6 """Downloads and unpacks a toolchain for building on Windows. The contents are |
7 matched by sha1 which will be updated when the toolchain is updated. | 7 matched by sha1 which will be updated when the toolchain is updated. |
8 | 8 |
9 Having a toolchain script in depot_tools means that it's not versioned | 9 Having a toolchain script in depot_tools means that it's not versioned |
10 directly with the source code. That is, if the toolchain is upgraded, but | 10 directly with the source code. That is, if the toolchain is upgraded, but |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 print 'Access to gs://chrome-wintoolchain/ not configured.' | 155 print 'Access to gs://chrome-wintoolchain/ not configured.' |
156 print '-----------------------------------------------------------------' | 156 print '-----------------------------------------------------------------' |
157 print | 157 print |
158 print 'You appear to be a Googler.' | 158 print 'You appear to be a Googler.' |
159 print | 159 print |
160 print 'I\'m sorry for the hassle, but you need to do a one-time manual' | 160 print 'I\'m sorry for the hassle, but you need to do a one-time manual' |
161 print 'authentication. Please run:' | 161 print 'authentication. Please run:' |
162 print | 162 print |
163 print ' download_from_google_storage --config' | 163 print ' download_from_google_storage --config' |
164 print | 164 print |
165 print 'and follow the instructions. NOTE: Just press Enter when asked for' | 165 print 'and follow the instructions.' |
166 print 'a "project-id".' | 166 print |
| 167 print 'NOTE 1: Use your google.com credentials, not chromium.org.' |
| 168 print 'NOTE 2: Just press Enter when asked for a "project-id".' |
167 print | 169 print |
168 print '-----------------------------------------------------------------' | 170 print '-----------------------------------------------------------------' |
169 print | 171 print |
170 sys.stdout.flush() | 172 sys.stdout.flush() |
171 sys.exit(1) | 173 sys.exit(1) |
172 | 174 |
173 | 175 |
174 def DelayBeforeRemoving(target_dir): | 176 def DelayBeforeRemoving(target_dir): |
175 """A grace period before deleting the out of date toolchain directory.""" | 177 """A grace period before deleting the out of date toolchain directory.""" |
176 if (os.path.isdir(target_dir) and | 178 if (os.path.isdir(target_dir) and |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 | 248 |
247 if options.output_json: | 249 if options.output_json: |
248 shutil.copyfile(os.path.join(target_dir, '..', 'data.json'), | 250 shutil.copyfile(os.path.join(target_dir, '..', 'data.json'), |
249 options.output_json) | 251 options.output_json) |
250 | 252 |
251 return 0 | 253 return 0 |
252 | 254 |
253 | 255 |
254 if __name__ == '__main__': | 256 if __name__ == '__main__': |
255 sys.exit(main()) | 257 sys.exit(main()) |
OLD | NEW |