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