| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2016 PDFium Authors. All rights reserved. | 2 # Copyright 2016 PDFium 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 """Prints the lowest locally available SDK version greater than or equal to a | 6 """Prints the lowest locally available SDK version greater than or equal to a |
| 7 given minimum sdk version to standard output. | 7 given minimum sdk version to standard output. |
| 8 | 8 |
| 9 Usage: | 9 Usage: |
| 10 python mac_find_sdk.py 10.6 # Ignores SDKs < 10.6 | 10 python mac_find_sdk.py 10.6 # Ignores SDKs < 10.6 |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 'macosx' + best_sdk, 'Path']).strip() | 84 'macosx' + best_sdk, 'Path']).strip() |
| 85 | 85 |
| 86 return best_sdk | 86 return best_sdk |
| 87 | 87 |
| 88 | 88 |
| 89 if __name__ == '__main__': | 89 if __name__ == '__main__': |
| 90 if sys.platform != 'darwin': | 90 if sys.platform != 'darwin': |
| 91 raise Exception("This script only runs on Mac") | 91 raise Exception("This script only runs on Mac") |
| 92 print main() | 92 print main() |
| 93 sys.exit(0) | 93 sys.exit(0) |
| OLD | NEW |