| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2011 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 """A tool to collect crash signatures for Chrome builds on Linux.""" | 6 """A tool to collect crash signatures for Chrome builds on Linux.""" |
| 7 | 7 |
| 8 import fnmatch | 8 import fnmatch |
| 9 import optparse | 9 import optparse |
| 10 import os | 10 import os |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 'This argument overrides --architecture.') | 285 'This argument overrides --architecture.') |
| 286 parser.add_option('', '--architecture', type='int', default=None, | 286 parser.add_option('', '--architecture', type='int', default=None, |
| 287 help='Override automatic x86/x86-64 detection. ' | 287 help='Override automatic x86/x86-64 detection. ' |
| 288 'Valid values are 32 and 64') | 288 'Valid values are 32 and 64') |
| 289 parser.add_option('', '--sym-module-name', type='string', default='chrome', | 289 parser.add_option('', '--sym-module-name', type='string', default='chrome', |
| 290 help='The module name for the symbol file. ' | 290 help='The module name for the symbol file. ' |
| 291 'Default: chrome') | 291 'Default: chrome') |
| 292 | 292 |
| 293 (options, args) = parser.parse_args() | 293 (options, args) = parser.parse_args() |
| 294 | 294 |
| 295 if sys.platform == 'linux2': | 295 if sys.platform.startswith('linux'): |
| 296 sys.exit(main_linux(options, args)) | 296 sys.exit(main_linux(options, args)) |
| 297 else: | 297 else: |
| 298 sys.exit(1) | 298 sys.exit(1) |
| OLD | NEW |