Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(233)

Side by Side Diff: win_toolchain/get_toolchain_if_necessary.py

Issue 1131643003: Update toolchain setup instructions to match reality. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 print 'You appear to be a Googler.' 159 print 'You appear to be a Googler.'
160 print 160 print
161 print 'I\'m sorry for the hassle, but you need to do a one-time manual' 161 print 'I\'m sorry for the hassle, but you need to do a one-time manual'
162 print 'authentication. Please run:' 162 print 'authentication. Please run:'
163 print 163 print
164 print ' download_from_google_storage --config' 164 print ' download_from_google_storage --config'
165 print 165 print
166 print 'and follow the instructions.' 166 print 'and follow the instructions.'
167 print 167 print
168 print 'NOTE 1: Use your google.com credentials, not chromium.org.' 168 print 'NOTE 1: Use your google.com credentials, not chromium.org.'
169 print 'NOTE 2: Just press Enter when asked for a "project-id".' 169 print 'NOTE 2: Enter 0 when asked for a "project-id".'
170 print 170 print
171 print '-----------------------------------------------------------------' 171 print '-----------------------------------------------------------------'
172 print 172 print
173 sys.stdout.flush() 173 sys.stdout.flush()
174 sys.exit(1) 174 sys.exit(1)
175 175
176 176
177 def DelayBeforeRemoving(target_dir): 177 def DelayBeforeRemoving(target_dir):
178 """A grace period before deleting the out of date toolchain directory.""" 178 """A grace period before deleting the out of date toolchain directory."""
179 if (os.path.isdir(target_dir) and 179 if (os.path.isdir(target_dir) and
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 263
264 if options.output_json: 264 if options.output_json:
265 shutil.copyfile(os.path.join(target_dir, '..', 'data.json'), 265 shutil.copyfile(os.path.join(target_dir, '..', 'data.json'),
266 options.output_json) 266 options.output_json)
267 267
268 return 0 268 return 0
269 269
270 270
271 if __name__ == '__main__': 271 if __name__ == '__main__':
272 sys.exit(main()) 272 sys.exit(main())
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698