OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # | 2 # |
3 # Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 3 # Copyright (c) 2015, 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 import os.path | 7 import os.path |
8 import shutil | 8 import shutil |
9 import sys | 9 import sys |
10 | 10 |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 local_sha256 = bot_utils.CreateSha256ChecksumFile(local_path, | 181 local_sha256 = bot_utils.CreateSha256ChecksumFile(local_path, |
182 mangled_filename) | 182 mangled_filename) |
183 gsutil.upload(local_sha256, remote_path + '.sha256sum', public=True) | 183 gsutil.upload(local_sha256, remote_path + '.sha256sum', public=True) |
184 | 184 |
185 def Run(command): | 185 def Run(command): |
186 print "Running %s" % ' '.join(command) | 186 print "Running %s" % ' '.join(command) |
187 return bot.RunProcess(command) | 187 return bot.RunProcess(command) |
188 | 188 |
189 if __name__ == '__main__': | 189 if __name__ == '__main__': |
190 # We always clobber the bot, to make sure releases are build from scratch | 190 # We always clobber the bot, to make sure releases are build from scratch |
191 force = CHANNEL != bot_utils.Channel.BLEEDING_EDGE: | 191 force = CHANNEL != bot_utils.Channel.BLEEDING_EDGE |
192 bot.Clobber(force=force) | 192 bot.Clobber(force=force) |
193 | 193 |
194 CreateUploadSDK() | 194 CreateUploadSDK() |
195 if BUILD_OS == 'linux': | 195 if BUILD_OS == 'linux': |
196 CreateUploadVersionFile() | 196 CreateUploadVersionFile() |
197 CreateUploadAPIDocs() | 197 CreateUploadAPIDocs() |
OLD | NEW |