OLD | NEW |
| 1 #!/usr/bin/env python |
1 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 2 # 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 | 3 # 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. | 4 # BSD-style license that can be found in the LICENSE file. |
4 # | 5 # |
5 # This python script creates a version string in a C++ file. | 6 # This python script creates a version string in a C++ file. |
6 | 7 |
7 import hashlib | 8 import hashlib |
8 import os | 9 import os |
9 import sys | 10 import sys |
10 import time | 11 import time |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 return 0 | 103 return 0 |
103 except Exception, inst: | 104 except Exception, inst: |
104 sys.stderr.write('make_version.py exception\n') | 105 sys.stderr.write('make_version.py exception\n') |
105 sys.stderr.write(str(inst)) | 106 sys.stderr.write(str(inst)) |
106 sys.stderr.write('\n') | 107 sys.stderr.write('\n') |
107 return -1 | 108 return -1 |
108 | 109 |
109 if __name__ == '__main__': | 110 if __name__ == '__main__': |
110 exit_code = main(sys.argv) | 111 exit_code = main(sys.argv) |
111 sys.exit(exit_code) | 112 sys.exit(exit_code) |
OLD | NEW |