| 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 22 matching lines...) Expand all Loading... |
| 33 HOST_OS = utils.GuessOS() | 33 HOST_OS = utils.GuessOS() |
| 34 DART_DIR = abspath(join(__file__, '..', '..')) | 34 DART_DIR = abspath(join(__file__, '..', '..')) |
| 35 | 35 |
| 36 # Flags. | 36 # Flags. |
| 37 verbose = False | 37 verbose = False |
| 38 | 38 |
| 39 # Name of the dart directory when unpacking the tarball. | 39 # Name of the dart directory when unpacking the tarball. |
| 40 versiondir = '' | 40 versiondir = '' |
| 41 | 41 |
| 42 # Ignore Git/SVN files, checked-in binaries, backup files, etc.. | 42 # Ignore Git/SVN files, checked-in binaries, backup files, etc.. |
| 43 ignoredPaths = ['tools/testing/bin' | 43 ignoredPaths = ['tools/testing/bin', |
| 44 'third_party/7zip', 'third_party/android_tools', | 44 'third_party/7zip', 'third_party/android_tools', |
| 45 'third_party/clang', 'third_party/d8', | 45 'third_party/clang', 'third_party/d8', |
| 46 'third_party/firefox_jsshell'] | 46 'third_party/firefox_jsshell'] |
| 47 ignoredDirs = ['.svn', '.git'] | 47 ignoredDirs = ['.svn', '.git'] |
| 48 ignoredEndings = ['.mk', '.pyc', 'Makefile', '~'] | 48 ignoredEndings = ['.mk', '.pyc', 'Makefile', '~'] |
| 49 | 49 |
| 50 def BuildOptions(): | 50 def BuildOptions(): |
| 51 result = optparse.OptionParser() | 51 result = optparse.OptionParser() |
| 52 result.add_option("-v", "--verbose", | 52 result.add_option("-v", "--verbose", |
| 53 help='Verbose output.', | 53 help='Verbose output.', |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 parser = BuildOptions() | 154 parser = BuildOptions() |
| 155 (options, args) = parser.parse_args() | 155 (options, args) = parser.parse_args() |
| 156 if options.verbose: | 156 if options.verbose: |
| 157 global verbose | 157 global verbose |
| 158 verbose = True | 158 verbose = True |
| 159 | 159 |
| 160 CreateTarball() | 160 CreateTarball() |
| 161 | 161 |
| 162 if __name__ == '__main__': | 162 if __name__ == '__main__': |
| 163 sys.exit(Main()) | 163 sys.exit(Main()) |
| OLD | NEW |