OLD | NEW |
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 Loading... |
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()) |
OLD | NEW |