| OLD | NEW |
| 1 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 # for details. All rights reserved. Use of this source code is governed by a | 2 # for details. All rights reserved. Use of this source code is governed by a |
| 3 # BSD-style license that can be found in the LICENSE file. | 3 # BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 # This file contains a set of utilities functions used by other Python-based | 5 # This file contains a set of utilities functions used by other Python-based |
| 6 # scripts. | 6 # scripts. |
| 7 | 7 |
| 8 import commands | 8 import commands |
| 9 import os | 9 import os |
| 10 import platform | 10 import platform |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 'macos': os.path.join('xcodebuild'), | 213 'macos': os.path.join('xcodebuild'), |
| 214 } | 214 } |
| 215 | 215 |
| 216 ARCH_FAMILY = { | 216 ARCH_FAMILY = { |
| 217 'ia32': 'ia32', | 217 'ia32': 'ia32', |
| 218 'x64': 'ia32', | 218 'x64': 'ia32', |
| 219 'arm': 'arm', | 219 'arm': 'arm', |
| 220 'mips': 'mips', | 220 'mips': 'mips', |
| 221 'simarm': 'ia32', | 221 'simarm': 'ia32', |
| 222 'simmips': 'ia32', | 222 'simmips': 'ia32', |
| 223 'simarm64': 'ia32', |
| 223 } | 224 } |
| 224 | 225 |
| 225 ARCH_GUESS = GuessArchitecture() | 226 ARCH_GUESS = GuessArchitecture() |
| 226 BASE_DIR = os.path.abspath(os.path.join(os.curdir, '..')) | 227 BASE_DIR = os.path.abspath(os.path.join(os.curdir, '..')) |
| 227 DART_DIR = os.path.abspath(os.path.join(__file__, '..', '..')) | 228 DART_DIR = os.path.abspath(os.path.join(__file__, '..', '..')) |
| 228 | 229 |
| 229 def GetBuildbotGSUtilPath(): | 230 def GetBuildbotGSUtilPath(): |
| 230 gsutil = '/b/build/scripts/slave/gsutil' | 231 gsutil = '/b/build/scripts/slave/gsutil' |
| 231 if platform.system() == 'Windows': | 232 if platform.system() == 'Windows': |
| 232 gsutil = 'e:\\\\b\\build\\scripts\\slave\\gsutil' | 233 gsutil = 'e:\\\\b\\build\\scripts\\slave\\gsutil' |
| (...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 559 os.chdir(self._working_directory) | 560 os.chdir(self._working_directory) |
| 560 | 561 |
| 561 def __exit__(self, *_): | 562 def __exit__(self, *_): |
| 562 print "Enter directory = ", self._old_cwd | 563 print "Enter directory = ", self._old_cwd |
| 563 os.chdir(self._old_cwd) | 564 os.chdir(self._old_cwd) |
| 564 | 565 |
| 565 | 566 |
| 566 if __name__ == "__main__": | 567 if __name__ == "__main__": |
| 567 import sys | 568 import sys |
| 568 Main(sys.argv) | 569 Main(sys.argv) |
| OLD | NEW |