Index: tools/create_sdk.py |
diff --git a/tools/create_sdk.py b/tools/create_sdk.py |
index 5cf2b1a0f28ef234e359ea996e793429ff18a96b..bd8a7a2fde5379f1973d1c8f4b610202bbd4090f 100755 |
--- a/tools/create_sdk.py |
+++ b/tools/create_sdk.py |
@@ -137,7 +137,13 @@ def CopySnapshots(snapshots, sdk_root): |
copyfile(join(snapshots, snapshot), |
join(sdk_root, 'bin', 'snapshots', snapshot)) |
-def CopyDartdocResources(home,sdk_root): |
+def CopyAnalyzerSources(home, lib_dir): |
+ for library in ['analyzer', 'analysis_server']: |
+ copytree(join(home, 'pkg', library), join(lib_dir, library), |
+ ignore=ignore_patterns('*.svn', 'doc', '*.py', '*.gypi', '*.sh', |
+ '.gitignore')) |
+ |
+def CopyDartdocResources(home, sdk_root): |
RESOURCE_DIR = join(sdk_root, 'bin', 'snapshots', 'resources') |
DARTDOC = join(RESOURCE_DIR, 'dartdoc') |
@@ -282,8 +288,10 @@ def Main(): |
# Copy dart2js/pub. |
CopyDartScripts(HOME, SDK_tmp) |
+ |
CopySnapshots(SNAPSHOT, SDK_tmp) |
CopyDartdocResources(HOME, SDK_tmp) |
+ CopyAnalyzerSources(HOME, LIB) |
# Write the 'version' file |
version = utils.GetVersion() |