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 | 7 import os |
8 import os.path | 8 import os.path |
9 import shutil | 9 import shutil |
10 import sys | 10 import sys |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 local_sha256 = bot_utils.CreateSha256ChecksumFile(local_path, | 217 local_sha256 = bot_utils.CreateSha256ChecksumFile(local_path, |
218 mangled_filename) | 218 mangled_filename) |
219 gsutil.upload(local_sha256, remote_path + '.sha256sum', public=True) | 219 gsutil.upload(local_sha256, remote_path + '.sha256sum', public=True) |
220 | 220 |
221 def Run(command, env=None): | 221 def Run(command, env=None): |
222 print "Running %s" % ' '.join(command) | 222 print "Running %s" % ' '.join(command) |
223 print "Environment %s" % env | 223 print "Environment %s" % env |
224 return bot.RunProcess(command, env=env) | 224 return bot.RunProcess(command, env=env) |
225 | 225 |
226 if __name__ == '__main__': | 226 if __name__ == '__main__': |
227 # We always clobber the bot, to make sure releases are build from scratch | 227 if len(sys.argv) > 1 and sys.argv[2] == 'api_docs': |
228 force = CHANNEL != bot_utils.Channel.BLEEDING_EDGE | 228 if BUILD_OS == 'linux': |
229 bot.Clobber(force=force) | 229 CreateUploadAPIDocs() |
| 230 else: |
| 231 # We always clobber the bot, to make sure releases are build from scratch |
| 232 force = CHANNEL != bot_utils.Channel.BLEEDING_EDGE |
| 233 bot.Clobber(force=force) |
230 | 234 |
231 CreateUploadSDK() | 235 CreateUploadSDK() |
232 if BUILD_OS == 'linux': | 236 if BUILD_OS == 'linux': |
233 CreateUploadVersionFile() | 237 CreateUploadVersionFile() |
234 CreateUploadAPIDocs() | |
OLD | NEW |