OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # | 2 # |
3 # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 3 # Copyright (c) 2013, 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 glob | 7 import glob |
8 import gsutil | 8 import gsutil |
9 import imp | 9 import imp |
10 import optparse | 10 import optparse |
(...skipping 1124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1135 def CreateApiDocs(buildLocation): | 1135 def CreateApiDocs(buildLocation): |
1136 """Zip up api_docs, upload it, and upload the raw tree of docs""" | 1136 """Zip up api_docs, upload it, and upload the raw tree of docs""" |
1137 | 1137 |
1138 apidir = join(DART_PATH, | 1138 apidir = join(DART_PATH, |
1139 utils.GetBuildRoot(BUILD_OS, 'release', 'ia32'), | 1139 utils.GetBuildRoot(BUILD_OS, 'release', 'ia32'), |
1140 'api_docs') | 1140 'api_docs') |
1141 | 1141 |
1142 shutil.rmtree(apidir, ignore_errors = True) | 1142 shutil.rmtree(apidir, ignore_errors = True) |
1143 | 1143 |
1144 CallBuildScript('release', 'ia32', 'api_docs') | 1144 CallBuildScript('release', 'ia32', 'api_docs') |
1145 CallBuildScript('release', 'ia32', 'dartdocgen') | 1145 CallBuildScript('release', 'ia32', 'docgen') |
1146 | 1146 |
1147 UploadApiDocs(apidir) | 1147 UploadApiDocs(apidir) |
1148 | 1148 |
1149 api_zip = join(buildLocation, 'dart-api-docs.zip') | 1149 api_zip = join(buildLocation, 'dart-api-docs.zip') |
1150 | 1150 |
1151 CreateZip(apidir, api_zip) | 1151 CreateZip(apidir, api_zip) |
1152 | 1152 |
1153 DartArchiveUploadAPIDocs(api_zip) | 1153 DartArchiveUploadAPIDocs(api_zip) |
1154 | 1154 |
1155 def UploadAndroidZip(out_dir): | 1155 def UploadAndroidZip(out_dir): |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1317 def FileDelete(f): | 1317 def FileDelete(f): |
1318 """delete the given file - do not re-throw any exceptions that occur""" | 1318 """delete the given file - do not re-throw any exceptions that occur""" |
1319 if os.path.exists(f): | 1319 if os.path.exists(f): |
1320 try: | 1320 try: |
1321 os.remove(f) | 1321 os.remove(f) |
1322 except OSError: | 1322 except OSError: |
1323 print 'error deleting %s' % f | 1323 print 'error deleting %s' % f |
1324 | 1324 |
1325 if __name__ == '__main__': | 1325 if __name__ == '__main__': |
1326 sys.exit(main()) | 1326 sys.exit(main()) |
OLD | NEW |