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

Unified Diff: tools/create_sdk.py

Issue 10918106: Move lib/compiler to pkg/compiler in SDK (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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
===================================================================
--- tools/create_sdk.py (revision 11985)
+++ tools/create_sdk.py (working copy)
@@ -23,7 +23,6 @@
# ......dart_debugger_api.h
# ....lib/
# ......_internal/
-# ......compiler/
# ......core/
# ......coreimpl/
# ......crypto/
@@ -38,6 +37,7 @@
# ......web/
# ....pkg/
# ......args/
+# ......compiler/
# ......dartdoc/
# ......intl/
# ......logging/
@@ -102,7 +102,7 @@
def CopyDart2Js(build_dir, sdk_root, revision):
if revision:
- ReplaceInFiles([os.path.join(sdk_root, 'lib', 'compiler',
+ ReplaceInFiles([os.path.join(sdk_root, 'pkg', 'compiler',
'implementation', 'compiler.dart')],
[(r"BUILD_ID = 'build number could not be determined'",
r"BUILD_ID = '%s'" % revision)])
@@ -111,7 +111,7 @@
Copy(os.path.join(build_dir, 'dart2js.bat'), dart2js)
ReplaceInFiles([dart2js],
[(r'%SCRIPTPATH%\.\.\\lib',
- r'%SCRIPTPATH%..\lib')])
+ r'%SCRIPTPATH%..\pkg')])
dartdoc = os.path.join(sdk_root, 'bin', 'dartdoc.bat')
Copy(os.path.join(build_dir, 'dartdoc.bat'), dartdoc)
else:
@@ -119,7 +119,7 @@
Copy(os.path.join(build_dir, 'dart2js'), dart2js)
ReplaceInFiles([dart2js],
[(r'\$BIN_DIR/\.\./\.\./lib',
- r'$BIN_DIR/../lib')])
+ r'$BIN_DIR/../pkg')])
dartdoc = os.path.join(sdk_root, 'bin', 'dartdoc')
Copy(os.path.join(build_dir, 'dartdoc'), dartdoc)
@@ -219,16 +219,12 @@
# Create and populate lib/{core, crypto, isolate, json, uri, utf, ...}.
#
- for library in ['_internal', 'compiler', 'html', 'core', 'coreimpl',
+ for library in ['_internal', 'html', 'core', 'coreimpl',
'crypto', 'isolate', 'json', 'math', 'mirrors', 'uri', 'utf',
'web']:
copytree(join(HOME, 'lib', library), join(LIB, library),
ignore=ignore_patterns('*.svn', 'doc', '*.py', '*.gypi', '*.sh'))
- # TODO(dgrove): fix this really ugly hack
- ReplaceInFiles(
- [join(LIB, 'compiler', 'implementation', 'lib', 'io.dart')],
- [('../../runtime/bin', '../io/runtime')])
# Create and copy pkg.
PKG = join(SDK_tmp, 'pkg')
@@ -243,6 +239,18 @@
ignore=ignore_patterns('*.svn', 'doc', 'docs',
'*.py', '*.gypi', '*.sh'))
+ # TODO(dgrove): fix this really ugly hack.
+ copytree(join(HOME, 'lib', 'compiler'), join(PKG, 'compiler'),
+ ignore=ignore_patterns('*.svn', 'doc', '*.py', '*.gypi', '*.sh'))
+
+ ReplaceInFiles(
+ [join(LIB, '_internal', 'libraries.dart')],
+ [('"compiler/', '"../pkg/compiler/')])
danrubel 2012/09/06 21:49:42 If its not in the "lib" directory then it should n
+
+ ReplaceInFiles(
+ [join(PKG, 'compiler', 'implementation', 'lib', 'io.dart')],
+ [('../../runtime/bin', '../../lib/io/runtime')])
+
# Fixup dartdoc
ReplaceInFiles([
join(PKG, 'dartdoc', 'dartdoc.dart'),
« 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