Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(600)

Side by Side Diff: tools/print_version.py

Issue 22393002: First CL for removing our dependency on the checked-in binary for building (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/dart-runtime.gyp ('k') | tools/utils.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # 2 #
3 # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 3 # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
4 # for details. All rights reserved. Use of this source code is governed by a 4 # for details. All rights reserved. Use of this source code is governed by a
5 # BSD-style license that can be found in the LICENSE file. 5 # BSD-style license that can be found in the LICENSE file.
6 # 6 #
7 # A script which will be invoked from gyp to print the current version of the 7 # A script which will be invoked from gyp to print the current version of the
8 # SDK. 8 # SDK.
9 # 9 #
10 # Usage: print_version 10 # Usage: print_version
11 # 11 #
12 12
13 import sys 13 import sys
14 import utils 14 import utils
15 15
16 def Main(argv): 16 def Main():
17 print(utils.GetVersion()) 17 version = utils.GetVersion()
18 if not version:
19 print 'Error: Couldn\'t determine version string.'
20 return 1
21 print version
18 22
19 if __name__ == '__main__': 23 if __name__ == '__main__':
20 sys.exit(Main(sys.argv)) 24 sys.exit(Main())
OLDNEW
« no previous file with comments | « runtime/dart-runtime.gyp ('k') | tools/utils.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698