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

Side by Side Diff: build/win/setup_cygwin_mount.py

Issue 9159050: Don't run cygwin setup on Mac (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleaner test for windows Created 8 years, 10 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 | Annotate | Revision Log
« 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 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import os 5 import os
6 import sys 6 import sys
7 7
8 def main(): 8 def main():
9 if len(sys.argv) != 2 or sys.argv[1] != '--win-only': 9 if len(sys.argv) != 2 or sys.argv[1] != '--win-only':
10 return 1 10 return 1
11 if 'win' in sys.platform: 11 if sys.platform in ('win32', 'cygwin'):
12 self_dir = os.path.dirname(sys.argv[0]) 12 self_dir = os.path.dirname(sys.argv[0])
13 mount_path = os.path.join(self_dir, "..\\..\\third_party\\cygwin") 13 mount_path = os.path.join(self_dir, "../../third_party/cygwin")
14 batch_path = os.path.join(mount_path, "setup_mount.bat") 14 batch_path = os.path.join(mount_path, "setup_mount.bat")
15 return os.system(os.path.normpath(batch_path) + ">nul") 15 return os.system(os.path.normpath(batch_path) + ">nul")
16 return 0 16 return 0
17 17
18 18
19 if __name__ == "__main__": 19 if __name__ == "__main__":
20 sys.exit(main()) 20 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