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

Unified Diff: tools/create_sdk.py

Issue 1601373002: SDK gets analyzer sources. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 months 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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()
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698