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

Side by Side Diff: tools/create_tarball.py

Issue 208393003: Add default tar file name for source tarball (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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 | « tools/create_debian_packages.py ('k') | no next file » | 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) 2014, the Dart project authors. Please see the AUTHORS file 3 # Copyright (c) 2014, 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 7
8 # Script to build a tarball of the Dart source. 8 # Script to build a tarball of the Dart source.
9 # 9 #
10 # The tarball includes all the source needed to build Dart. This 10 # The tarball includes all the source needed to build Dart. This
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 print 'Tarball can only be created on linux' 148 print 'Tarball can only be created on linux'
149 return -1 149 return -1
150 150
151 # Parse the options. 151 # Parse the options.
152 parser = BuildOptions() 152 parser = BuildOptions()
153 (options, args) = parser.parse_args() 153 (options, args) = parser.parse_args()
154 if options.verbose: 154 if options.verbose:
155 global verbose 155 global verbose
156 verbose = True 156 verbose = True
157 157
158 if not options.tar_filename: 158 tar_filename = options.tar_filename
159 raise Exception('Please specify an output filename') 159 if not tar_filename:
160 tar_filename = join(DART_DIR,
161 utils.GetBuildDir(HOST_OS, HOST_OS),
162 'dart-%s.tar.gz' % utils.GetVersion())
160 163
161 CreateTarball(options.tar_filename) 164 CreateTarball(tar_filename)
162 165
163 if __name__ == '__main__': 166 if __name__ == '__main__':
164 sys.exit(Main()) 167 sys.exit(Main())
OLDNEW
« no previous file with comments | « tools/create_debian_packages.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698