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

Side by Side Diff: bin/fetch-gn

Issue 2197423002: Pick the right download tool for windows. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 4 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 2
3 # Copyright 2016 Google Inc. 3 # Copyright 2016 Google Inc.
4 # 4 #
5 # Use of this source code is governed by a BSD-style license that can be 5 # Use of this source code is governed by a BSD-style license that can be
6 # found in the LICENSE file. 6 # found in the LICENSE file.
7 7
8 import subprocess 8 import subprocess
9 import sys 9 import sys
10 10
11 def quiet(*cmd): 11 def quiet(*cmd):
12 cmd = ' '.join(cmd).split() 12 cmd = ' '.join(cmd).split()
13 subprocess.check_output(cmd) 13 subprocess.check_output(cmd)
14 14
15 def gn_path(): 15 def gn_path():
16 if 'linux' in sys.platform: 16 if 'linux' in sys.platform:
17 return 'buildtools/linux64/gn' 17 return 'buildtools/linux64/gn'
18 if 'darwin' in sys.platform: 18 if 'darwin' in sys.platform:
19 return 'buildtools/mac/gn' 19 return 'buildtools/mac/gn'
20 return 'buildtools/win/gn.exe' 20 return 'buildtools/win/gn.exe'
21 21
22 quiet('download_from_google_storage', 22 def download_tool():
23 » if 'win' in sys.platform:
mtklein_C 2016/08/01 18:47:12 'win' in 'Darwin' :/
herb_g 2016/08/01 18:52:08 Done.
24 » » return 'download_from_google_storage.bat'
25 » return 'download_from_google_storage'
26 »
27 quiet(download_tool(),
23 '--no_resume --no_auth --bucket chromium-gn', 28 '--no_resume --no_auth --bucket chromium-gn',
24 '-s ', gn_path() + '.sha1') 29 '-s ', gn_path() + '.sha1')
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