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

Side by Side Diff: tools/create_tarball.py

Issue 1322753005: Add download of the stable SDK from gcloud to the gclient hooks in DEPS. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Exclude from create_tarball.py Created 5 years, 3 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
« no previous file with comments | « DEPS ('k') | tools/deps/dartium.deps/DEPS » ('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) 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 23 matching lines...) Expand all
34 HOST_OS = utils.GuessOS() 34 HOST_OS = utils.GuessOS()
35 DART_DIR = abspath(join(__file__, '..', '..')) 35 DART_DIR = abspath(join(__file__, '..', '..'))
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 'tools/sdks',
44 'third_party/7zip', 'third_party/android_tools', 45 'third_party/7zip', 'third_party/android_tools',
45 'third_party/clang', 'third_party/d8', 46 'third_party/clang', 'third_party/d8',
46 'third_party/firefox_jsshell'] 47 'third_party/firefox_jsshell']
47 ignoredDirs = ['.svn', '.git'] 48 ignoredDirs = ['.svn', '.git']
48 ignoredEndings = ['.mk', '.pyc', 'Makefile', '~'] 49 ignoredEndings = ['.mk', '.pyc', 'Makefile', '~']
49 50
50 def BuildOptions(): 51 def BuildOptions():
51 result = optparse.OptionParser() 52 result = optparse.OptionParser()
52 result.add_option("-v", "--verbose", 53 result.add_option("-v", "--verbose",
53 help='Verbose output.', 54 help='Verbose output.',
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 tar_filename = options.tar_filename 160 tar_filename = options.tar_filename
160 if not tar_filename: 161 if not tar_filename:
161 tar_filename = join(DART_DIR, 162 tar_filename = join(DART_DIR,
162 utils.GetBuildDir(HOST_OS), 163 utils.GetBuildDir(HOST_OS),
163 'dart-%s.tar.gz' % utils.GetVersion()) 164 'dart-%s.tar.gz' % utils.GetVersion())
164 165
165 CreateTarball(tar_filename) 166 CreateTarball(tar_filename)
166 167
167 if __name__ == '__main__': 168 if __name__ == '__main__':
168 sys.exit(Main()) 169 sys.exit(Main())
OLDNEW
« no previous file with comments | « DEPS ('k') | tools/deps/dartium.deps/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698