| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 | 2 |
| 3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
| 6 | 6 |
| 7 import glob | 7 import glob |
| 8 import optparse | 8 import optparse |
| 9 import os | 9 import os |
| 10 import shutil | 10 import shutil |
| 11 import subprocess | |
| 12 import sys | 11 import sys |
| 13 import utils | 12 import utils |
| 14 | 13 |
| 15 HOST_OS = utils.guessOS() | 14 HOST_OS = utils.guessOS() |
| 16 | 15 |
| 17 if HOST_OS == 'mac': | 16 if HOST_OS == 'mac': |
| 18 VERSION_FILE = 'Chromium.app/Contents/MacOS/VERSION' | 17 VERSION_FILE = 'Chromium.app/Contents/MacOS/VERSION' |
| 19 CONTENTSHELL_FILES = ['Content Shell.app', 'ffmpegsumo.so', 'osmesa.so', | 18 CONTENTSHELL_FILES = ['Content Shell.app', 'ffmpegsumo.so', 'osmesa.so', |
| 20 'lib'] | 19 'lib'] |
| 21 CHROMEDRIVER_FILES = ['chromedriver'] | 20 CHROMEDRIVER_FILES = ['chromedriver'] |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 action='store', type='string', | 194 action='store', type='string', |
| 196 help='(Release|Debug)') | 195 help='(Release|Debug)') |
| 197 (options, args) = parser.parse_args() | 196 (options, args) = parser.parse_args() |
| 198 Archive(srcpath, options.mode, options.dartium, options.contentshell, | 197 Archive(srcpath, options.mode, options.dartium, options.contentshell, |
| 199 options.chromedriver) | 198 options.chromedriver) |
| 200 return 0 | 199 return 0 |
| 201 | 200 |
| 202 | 201 |
| 203 if __name__ == '__main__': | 202 if __name__ == '__main__': |
| 204 sys.exit(main()) | 203 sys.exit(main()) |
| OLD | NEW |