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

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: 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
Index: tools/create_sdk.py
diff --git a/tools/create_sdk.py b/tools/create_sdk.py
index 5843aa5691d36372287f7a33ae1798465566f825..d084ba0dd408260fc1eb36b08b05cd94f5093e94 100755
--- a/tools/create_sdk.py
+++ b/tools/create_sdk.py
@@ -38,7 +38,7 @@
# ......utf/
# ......scalarlist/
# ......typeddata/
-# ....pkg/
+# ....packages/
Bob Nystrom 2013/03/26 01:55:44 Can you run this by Dan too? I'm going to guess he
nweiz 2013/03/26 02:09:53 He's already a reviewer.
# ......args/
# ......intl/
# ......logging/
@@ -215,20 +215,18 @@ 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))
# Create and copy tools.
UTIL = join(SDK_tmp, 'util')
@@ -282,9 +280,9 @@ def Main(argv):
join(SDK_tmp, 'lib', '_internal', 'dartdoc',
'lib', 'universe_serializer.dart')], [
("../../../../../pkg/args/lib/args.dart",
- "../../../../pkg/args/lib/args.dart"),
+ "package:args/args.dart"),
("../../../../../pkg/pathos/lib/path.dart",
- "../../../../pkg/pathos/lib/path.dart"),
+ "package:pathos/path.dart"),
Bob Nystrom 2013/03/26 01:55:44 Are these even still necessary?
nweiz 2013/03/26 02:09:53 Good point, they are not.
])
# Write the 'version' file

Powered by Google App Engine
This is Rietveld 408576698