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

Unified Diff: tools/upload_sdk.py

Issue 8923007: Changed upload_sdk.py to handle local builds (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years 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 | « editor/build/build.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/upload_sdk.py
===================================================================
--- tools/upload_sdk.py (revision 2354)
+++ tools/upload_sdk.py (working copy)
@@ -58,11 +58,18 @@
def main(argv):
+ #allow local editor builds to deploy to a different bucket
+ if os.environ['DART_LOCAL_BUILD']:
+ gsdir = os.environ
+ else:
+ gsdir = GS_DIR
+
if not os.path.exists(argv[1]):
sys.stderr.write('Path not found: %s\n' % argv[1])
Usage(argv[0])
return 1
if not os.path.exists(GSUTIL):
+ sys.stderr.write('cound not find {0}'.format(GSUTIL))
dgrove 2011/12/13 05:31:31 I had intentionally made this not print anything s
exit(0)
revision = GetSVNRevision()
if revision is None:
@@ -73,9 +80,9 @@
sdk_name = 'dart-' + utils.GuessOS() + '-' + revision + '.zip'
sdk_file = '../' + sdk_name
ExecuteCommand(['zip', '-yr', sdk_file, '.'])
- UploadArchive(sdk_file, GS_SITE + os.path.join(GS_DIR, SDK, sdk_name))
+ UploadArchive(sdk_file, GS_SITE + os.path.join(gsdir, SDK, sdk_name))
latest_name = 'dart-' + utils.GuessOS() + '-latest' + '.zip'
- UploadArchive(sdk_file, GS_SITE + os.path.join(GS_DIR, SDK, latest_name))
+ UploadArchive(sdk_file, GS_SITE + os.path.join(gsdir, SDK, latest_name))
if __name__ == '__main__':
« no previous file with comments | « editor/build/build.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698