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

Unified Diff: tools/create_sdk.py

Issue 9569040: Clean up dom/html files packaged by the sdk. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 10 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 | « frog/reader.dart ('k') | no next file » | 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 6411245f3cde5489e90b29559e29bd56e4d02885..74105b06746d7a6061b5bef79fb7b511401028ac 100644
--- a/tools/create_sdk.py
+++ b/tools/create_sdk.py
@@ -231,19 +231,11 @@ def Main(argv):
htmlimpl_dest_dir = join(LIB, 'htmlimpl')
os.makedirs(htmlimpl_dest_dir)
- copyfile(join(html_src_dir, 'release', 'html.dart'),
+ copyfile(join(html_src_dir, 'release', 'html.dart'),
join(html_dest_dir, 'html.dart'))
- copyfile(join(html_src_dir, 'release', 'htmlimpl.dart'),
+ copyfile(join(html_src_dir, 'release', 'htmlimpl.dart'),
join(htmlimpl_dest_dir, 'htmlimpl.dart'))
- # TODO(dgrove): prune the correct files in html and htmlimpl.
- for target_dir in [html_dest_dir, htmlimpl_dest_dir]:
- copytree(join(html_src_dir, 'src'), join(target_dir, 'src'),
- ignore=ignore_patterns('.svn'))
- copytree(join(html_src_dir, 'generated'), join(target_dir, 'generated'),
- ignore=ignore_patterns('.svn'))
-
-
#
# Create and populate lib/dom.
#
@@ -251,16 +243,8 @@ def Main(argv):
dom_dest_dir = join(LIB, 'dom')
os.makedirs(dom_dest_dir)
- for filename in os.listdir(dom_src_dir):
- src_file = join(dom_src_dir, filename)
- dest_file = join(dom_dest_dir, filename)
- if filename.endswith('.dart') or filename.endswith('.js'):
- copyfile(src_file, dest_file)
- elif isdir(src_file):
- if filename not in ['benchmarks', 'idl', 'scripts', 'snippets', '.svn']:
- copytree(src_file, dest_file,
- ignore=ignore_patterns('.svn', 'interface', 'wrapping',
- '*monkey*'))
+ copyfile(join(dom_src_dir, 'frog', 'dom_frog.dart'),
+ join(dom_dest_dir, 'dom_frog.dart'))
#
# Create and populate lib/{json, uri, utf8} .
« no previous file with comments | « frog/reader.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698