OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2015 the V8 project authors. All rights reserved. | 2 # Copyright 2015 the V8 project authors. All rights reserved. |
3 # Copyright 2014 The Chromium Authors. All rights reserved. | 3 # Copyright 2014 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 json | 8 import json |
9 import os | 9 import os |
10 import pipes | 10 import pipes |
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
370 'copy_dlls': CopyDlls, | 370 'copy_dlls': CopyDlls, |
371 } | 371 } |
372 if len(sys.argv) < 2 or sys.argv[1] not in commands: | 372 if len(sys.argv) < 2 or sys.argv[1] not in commands: |
373 print >>sys.stderr, 'Expected one of: %s' % ', '.join(commands) | 373 print >>sys.stderr, 'Expected one of: %s' % ', '.join(commands) |
374 return 1 | 374 return 1 |
375 return commands[sys.argv[1]](*sys.argv[2:]) | 375 return commands[sys.argv[1]](*sys.argv[2:]) |
376 | 376 |
377 | 377 |
378 if __name__ == '__main__': | 378 if __name__ == '__main__': |
379 sys.exit(main()) | 379 sys.exit(main()) |
OLD | NEW |