| OLD | NEW |
| 1 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 2 # for details. All rights reserved. Use of this source code is governed by a | 2 # for details. All rights reserved. Use of this source code is governed by a |
| 3 # BSD-style license that can be found in the LICENSE file. | 3 # BSD-style license that can be found in the LICENSE file. |
| 4 # | 4 # |
| 5 # This python script creates a version string in a C++ file. | 5 # This python script creates a version string in a C++ file. |
| 6 | 6 |
| 7 import os | 7 import os |
| 8 import sys | 8 import sys |
| 9 import subprocess | 9 import subprocess |
| 10 import platform | 10 import platform |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 return -1 | 110 return -1 |
| 111 | 111 |
| 112 return 0 | 112 return 0 |
| 113 except Exception, inst: | 113 except Exception, inst: |
| 114 sys.stderr.write('make_version.py exception\n') | 114 sys.stderr.write('make_version.py exception\n') |
| 115 sys.stderr.write(str(inst)) | 115 sys.stderr.write(str(inst)) |
| 116 sys.stderr.write('\n') | 116 sys.stderr.write('\n') |
| 117 return -1 | 117 return -1 |
| 118 | 118 |
| 119 if __name__ == '__main__': | 119 if __name__ == '__main__': |
| 120 sys.exit(main(sys.argv)) | 120 sys.stderr.write('starting make_version.py\n') |
| 121 sys.stderr.flush() |
| 122 exit_code = main(sys.argv) |
| 123 sys.stderr.write('exiting make_version.py (exit code: %s)\n' % exit_code) |
| 124 sys.stderr.flush() |
| 125 sys.exit(exit_code) |
| OLD | NEW |