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

Unified Diff: tools/create_sdk.py

Issue 12782016: Switch pkg packages, pub, and dartdoc to use package: imports. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code review changes. Created 7 years, 9 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 | « sdk/lib/_internal/dartdoc/test/markdown_test.dart ('k') | utils/apidoc/apidoc.gyp » ('j') | 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 5843aa5691d36372287f7a33ae1798465566f825..ca7038bd8e2220aecffbac0ddb454d072cae3be6 100755
--- a/tools/create_sdk.py
+++ b/tools/create_sdk.py
@@ -38,7 +38,7 @@
# ......utf/
# ......scalarlist/
# ......typeddata/
-# ....pkg/
+# ....packages/
# ......args/
# ......intl/
# ......logging/
@@ -215,20 +215,19 @@ def Main(argv):
ignore=ignore_patterns('*.svn', 'doc', '*.py', '*.gypi', '*.sh'))
- # Create and copy pkg.
- PKG = join(SDK_tmp, 'pkg')
- os.makedirs(PKG)
+ # Create and copy packages.
+ PACKAGES = join(SDK_tmp, 'packages')
+ os.makedirs(PACKAGES)
#
- # Create and populate pkg/{args, intl, logging, meta, unittest, ...}
+ # Create and populate packages/{args, intl, logging, meta, unittest, ...}
#
for library in ['args', 'http', 'intl', 'logging', 'meta', 'oauth2', 'pathos',
'serialization', 'unittest', 'yaml']:
- copytree(join(HOME, 'pkg', library), join(PKG, library),
- ignore=ignore_patterns('*.svn', 'doc', 'docs',
- '*.py', '*.gypi', '*.sh', 'packages'))
+ copytree(join(HOME, 'pkg', library, 'lib'), join(PACKAGES, library),
+ ignore=ignore_patterns('*.svn'))
# Create and copy tools.
UTIL = join(SDK_tmp, 'util')
@@ -275,18 +274,6 @@ def Main(argv):
# Copy dart2js/dartdoc/pub.
CopyDartScripts(HOME, build_dir, SDK_tmp, version)
- # Fix up dartdoc.
- # TODO(dgrove): Remove this once issue 6619 is fixed.
- ReplaceInFiles([join(SDK_tmp, 'lib', '_internal', 'dartdoc',
- 'bin', 'dartdoc.dart'),
- join(SDK_tmp, 'lib', '_internal', 'dartdoc',
- 'lib', 'universe_serializer.dart')], [
- ("../../../../../pkg/args/lib/args.dart",
- "../../../../pkg/args/lib/args.dart"),
- ("../../../../../pkg/pathos/lib/path.dart",
- "../../../../pkg/pathos/lib/path.dart"),
- ])
-
# Write the 'version' file
versionFile = open(os.path.join(SDK_tmp, 'version'), 'w')
versionFile.write(version + '\n')
« no previous file with comments | « sdk/lib/_internal/dartdoc/test/markdown_test.dart ('k') | utils/apidoc/apidoc.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698