| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 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 # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 6 # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 7 # for details. All rights reserved. Use of this source code is governed by a | 7 # for details. All rights reserved. Use of this source code is governed by a |
| 8 # BSD-style license that can be found in the LICENSE file. | 8 # BSD-style license that can be found in the LICENSE file. |
| 9 | 9 |
| 10 # This file is a copy of Chromium's src/build/mac/find_sdk.py. | 10 # This file is a copy of Chromium's src/build/mac/find_sdk.py. |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 print >>sys.stderr, '' | 78 print >>sys.stderr, '' |
| 79 print >>sys.stderr, ' ^^^^^^^' | 79 print >>sys.stderr, ' ^^^^^^^' |
| 80 print >>sys.stderr, '' | 80 print >>sys.stderr, '' |
| 81 return min_sdk_version | 81 return min_sdk_version |
| 82 | 82 |
| 83 return best_sdk | 83 return best_sdk |
| 84 | 84 |
| 85 | 85 |
| 86 if __name__ == '__main__': | 86 if __name__ == '__main__': |
| 87 if sys.platform != 'darwin': | 87 if sys.platform != 'darwin': |
| 88 raise Exception("This script only runs on Mac") | 88 # raise Exception("This script only runs on Mac") |
| 89 print main() | 89 # If we aren't on Mac, print out a dummy version string; it won't be used. |
| 90 print 'X.X' |
| 91 else: |
| 92 print main() |
| OLD | NEW |