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

Unified Diff: tools/create_sdk.py

Issue 9325014: Fix issue 1494. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 11 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 3865)
+++ tools/create_sdk.py (working copy)
@@ -38,6 +38,8 @@
# ......json/
# ........json_{frog}.dart
# ........{frog}/
+# ......uri/
+# ........uri.dart
# ......(more will come here - io, etc)
# ....util/
# ......(more will come here)
@@ -193,6 +195,21 @@
copytree(join(frog_src_dir, 'leg'), join(frog_dest_dir, 'leg'),
ignore=ignore_patterns('.svn'))
+ frog_leg_contents = \
+ open(join(frog_src_dir, 'leg', 'frog_leg.dart')).read()
+ frog_leg_dest = open(join(frog_dest_dir, 'leg', 'frog_leg.dart'), 'w')
+ frog_leg_dest.write( \
+ re.sub("../../utils/uri", "../../uri", frog_leg_contents))
+ frog_leg_dest.close()
+
+ leg_contents = \
+ open(join(frog_src_dir, 'leg', 'leg.dart')).read()
+ leg_dest = open(join(frog_dest_dir, 'leg', 'leg.dart'), 'w')
+ leg_dest.write( \
+ re.sub("../../utils/uri", "../../uri", leg_contents))
+ leg_dest.close()
+
+
copytree(join(frog_src_dir, 'server'), join(frog_dest_dir, 'server'),
ignore=ignore_patterns('.svn'))
@@ -246,7 +263,19 @@
ignore=ignore_patterns('.svn', 'interface', 'wrapping',
'*monkey*'))
+ #
+ # Create and populate lib/uri.
#
+
+ uri_src_dir = join(HOME, 'utils', 'uri')
+ uri_dest_dir = join(LIB, 'uri')
+ os.makedirs(uri_dest_dir)
+
+ for filename in os.listdir(uri_src_dir):
+ if filename.endswith('.dart'):
+ copyfile(join(uri_src_dir, filename), join(uri_dest_dir, filename))
+
+ #
# Create and populate lib/core.
#
« 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