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

Unified Diff: tools/create_sdk.py

Issue 8932009: Build and upload SDK in both debug and release. (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 | « no previous file | tools/upload_sdk.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/create_sdk.py
===================================================================
--- tools/create_sdk.py (revision 2399)
+++ tools/create_sdk.py (working copy)
@@ -11,7 +11,7 @@
# The SDK will be used either from the command-line or from the editor.
# Top structure is
#
-# ..sdk/
+# ..dart-sdk/
# ....bin/
# ......dart or dart.exe (executable)
# ......frogc.dart
@@ -84,13 +84,6 @@
SDK = argv[1]
# TODO(dgrove) - deal with architectures that are not ia32.
- if (os.path.basename(os.path.dirname(SDK)) !=
- utils.GetBuildConf('release', 'ia32')):
- print "SDK is not built in Debug mode."
- if not os.path.exists(SDK):
- # leave empty dir behind
- os.makedirs(SDK)
- exit(0)
if exists(SDK):
rmtree(SDK)
@@ -101,7 +94,7 @@
# Copy the Dart VM binary into sdk/bin.
# TODO(dgrove) - deal with architectures that are not ia32.
- build_dir = utils.GetBuildRoot(utils.GuessOS(), 'release', 'ia32')
+ build_dir = os.path.dirname(argv[1])
if utils.GuessOS() == 'win32':
# TODO(dgrove) - deal with frogc.bat
dart_src_binary = join(HOME, build_dir, 'dart.exe')
@@ -380,8 +373,7 @@
copytree(join(HOME, 'utils', 'dartdoc'), join(UTIL, 'dartdoc'),
ignore=ignore_patterns('.svn'))
- copytree(SDK_tmp, SDK)
- rmtree(SDK_tmp)
+ move(SDK_tmp, SDK)
if __name__ == '__main__':
sys.exit(Main(sys.argv))
« no previous file with comments | « no previous file | tools/upload_sdk.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698