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

Unified Diff: pkg/compiler_unsupported/tool/create_library.py

Issue 690103004: Move dart2js from sdk/lib/_internal/compiler to pkg/compiler (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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 | « pkg/compiler/samples/jsonify/jsonify.dart ('k') | pkg/dart2js_incremental/lib/dart2js_incremental.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler_unsupported/tool/create_library.py
diff --git a/pkg/compiler_unsupported/tool/create_library.py b/pkg/compiler_unsupported/tool/create_library.py
index 5ff330b4c8e1d4e8f98b5020e1ac87b883cedd54..e84853efbe68817cf0a8193c6c97afbde0bf87ba 100755
--- a/pkg/compiler_unsupported/tool/create_library.py
+++ b/pkg/compiler_unsupported/tool/create_library.py
@@ -44,24 +44,27 @@ def Main(argv):
# sdk/lib/_internal
SOURCE = join(dirname(dirname(HOME)), 'sdk', 'lib', '_internal')
+ # pkg
+ PKG_SOURCE = join(dirname(dirname(HOME)), 'pkg')
+
# clean compiler_unsupported/lib
if not os.path.exists(TARGET):
os.mkdir(TARGET)
- shutil.rmtree(join(TARGET, 'implementation'), True)
+ shutil.rmtree(join(TARGET, 'src'), True)
RemoveFile(join(TARGET, 'compiler.dart'))
RemoveFile(join(TARGET, 'libraries.dart'))
# copy dart2js code
- shutil.copy(join(SOURCE, 'compiler', 'compiler.dart'), TARGET)
+ shutil.copy(join(PKG_SOURCE, 'compiler', 'lib', 'compiler.dart'), TARGET)
shutil.copy(join(SOURCE, 'libraries.dart'), TARGET)
shutil.copytree(
- join(SOURCE, 'compiler', 'implementation'),
- join(TARGET, 'implementation'))
+ join(PKG_SOURCE, 'compiler', 'lib', 'src'),
+ join(TARGET, 'src'))
# patch up the libraries.dart references
replace = [(r'\.\./\.\./libraries\.dart', r'\.\./libraries\.dart')]
- for root, dirs, files in os.walk(join(TARGET, 'implementation')):
+ for root, dirs, files in os.walk(join(TARGET, 'src')):
for name in files:
if name.endswith('.dart'):
ReplaceInFiles([join(root, name)], replace)
« no previous file with comments | « pkg/compiler/samples/jsonify/jsonify.dart ('k') | pkg/dart2js_incremental/lib/dart2js_incremental.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698