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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 } | 219 } |
220 | 220 |
221 ARCH_FAMILY = { | 221 ARCH_FAMILY = { |
222 'ia32': 'ia32', | 222 'ia32': 'ia32', |
223 'x64': 'ia32', | 223 'x64': 'ia32', |
224 'arm': 'arm', | 224 'arm': 'arm', |
225 'armv5te': 'arm', | 225 'armv5te': 'arm', |
226 'arm64': 'arm', | 226 'arm64': 'arm', |
227 'mips': 'mips', | 227 'mips': 'mips', |
228 'simarm': 'ia32', | 228 'simarm': 'ia32', |
| 229 'simarmv5te': 'ia32', |
229 'simmips': 'ia32', | 230 'simmips': 'ia32', |
230 'simarm64': 'ia32', | 231 'simarm64': 'ia32', |
231 } | 232 } |
232 | 233 |
233 ARCH_GUESS = GuessArchitecture() | 234 ARCH_GUESS = GuessArchitecture() |
234 BASE_DIR = os.path.abspath(os.path.join(os.curdir, '..')) | 235 BASE_DIR = os.path.abspath(os.path.join(os.curdir, '..')) |
235 DART_DIR = os.path.abspath(os.path.join(__file__, '..', '..')) | 236 DART_DIR = os.path.abspath(os.path.join(__file__, '..', '..')) |
236 | 237 |
237 def GetBuildbotGSUtilPath(): | 238 def GetBuildbotGSUtilPath(): |
238 gsutil = '/b/build/scripts/slave/gsutil' | 239 gsutil = '/b/build/scripts/slave/gsutil' |
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
601 os.chdir(self._working_directory) | 602 os.chdir(self._working_directory) |
602 | 603 |
603 def __exit__(self, *_): | 604 def __exit__(self, *_): |
604 print "Enter directory = ", self._old_cwd | 605 print "Enter directory = ", self._old_cwd |
605 os.chdir(self._old_cwd) | 606 os.chdir(self._old_cwd) |
606 | 607 |
607 | 608 |
608 if __name__ == "__main__": | 609 if __name__ == "__main__": |
609 import sys | 610 import sys |
610 Main() | 611 Main() |
OLD | NEW |