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

Side by Side Diff: editor/build/build.py

Issue 707503003: "Reverting 41529" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | pkg/docgen/bin/docgen.dart » ('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) 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
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
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())
OLDNEW
« no previous file with comments | « no previous file | pkg/docgen/bin/docgen.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698