| 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))
|
|
|