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

Unified Diff: dart/pkg/docgen/bin/upload_docgen.py

Issue 84703004: Removed dart.gyp:upload_sdk target and tools/upload_sdk.py (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « dart/pkg/docgen/bin/dartdoc.py ('k') | dart/tools/upload_sdk.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/pkg/docgen/bin/upload_docgen.py
diff --git a/dart/pkg/docgen/bin/upload_docgen.py b/dart/pkg/docgen/bin/upload_docgen.py
index b59839451b8e216aae7d890081d1c4c40c83e5c2..c376dadbea3707063466d430b5f4b7f94595795e 100644
--- a/dart/pkg/docgen/bin/upload_docgen.py
+++ b/dart/pkg/docgen/bin/upload_docgen.py
@@ -16,7 +16,6 @@ import subprocess
import sys
sys.path.append(abspath(join(dirname(__file__), '../../../tools')))
import utils
-from upload_sdk import ExecuteCommand
DART = abspath(join(dirname(__file__), '../../../%s/%s/dart-sdk/bin/dart'
@@ -63,7 +62,7 @@ def SetGsutil():
def Upload(source, target):
""" Upload files to Google Storage. """
cmd = [GSUTIL, '-m', 'cp', '-q', '-a', 'public-read', '-r', source, target]
- (status, output) = ExecuteCommand(cmd)
+ (status, output) = utils.ExecuteCommand(cmd)
return status
@@ -73,7 +72,7 @@ def main():
SetGsutil()
# Execute Docgen.dart on the SDK.
- ExecuteCommand(['python', 'dartdoc.py', '-d'])
+ utils.ExecuteCommand(['python', 'dartdoc.py', '-d'])
# Use SVN Revision to get the revision number.
revision = None
@@ -109,8 +108,8 @@ def main():
Upload('./VERSION', GS_SITE + '/' + revision + '/' + 'VERSION')
# Clean up the files it creates.
- ExecuteCommand(['rm', '-rf', './docs'])
- ExecuteCommand(['rm', '-f', './VERSION'])
+ utils.ExecuteCommand(['rm', '-rf', './docs'])
+ utils.ExecuteCommand(['rm', '-f', './VERSION'])
if __name__ == '__main__':
« no previous file with comments | « dart/pkg/docgen/bin/dartdoc.py ('k') | dart/tools/upload_sdk.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698