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 e84853efbe68817cf0a8193c6c97afbde0bf87ba..5ff330b4c8e1d4e8f98b5020e1ac87b883cedd54 100755 |
--- a/pkg/compiler_unsupported/tool/create_library.py |
+++ b/pkg/compiler_unsupported/tool/create_library.py |
@@ -44,27 +44,24 @@ 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, 'src'), True) |
+ shutil.rmtree(join(TARGET, 'implementation'), True) |
RemoveFile(join(TARGET, 'compiler.dart')) |
RemoveFile(join(TARGET, 'libraries.dart')) |
# copy dart2js code |
- shutil.copy(join(PKG_SOURCE, 'compiler', 'lib', 'compiler.dart'), TARGET) |
+ shutil.copy(join(SOURCE, 'compiler', 'compiler.dart'), TARGET) |
shutil.copy(join(SOURCE, 'libraries.dart'), TARGET) |
shutil.copytree( |
- join(PKG_SOURCE, 'compiler', 'lib', 'src'), |
- join(TARGET, 'src')) |
+ join(SOURCE, 'compiler', 'implementation'), |
+ join(TARGET, 'implementation')) |
# patch up the libraries.dart references |
replace = [(r'\.\./\.\./libraries\.dart', r'\.\./libraries\.dart')] |
- for root, dirs, files in os.walk(join(TARGET, 'src')): |
+ for root, dirs, files in os.walk(join(TARGET, 'implementation')): |
for name in files: |
if name.endswith('.dart'): |
ReplaceInFiles([join(root, name)], replace) |