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

Unified Diff: runtime/tools/concat_library.py

Issue 11411176: - Remove unneeded library tags when concatenating libraries. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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 | « runtime/bin/bin.gypi ('k') | runtime/vm/vm.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/tools/concat_library.py
===================================================================
--- runtime/tools/concat_library.py (revision 15315)
+++ runtime/tools/concat_library.py (working copy)
@@ -31,7 +31,10 @@
for source in arguments:
with open(source, 'r') as inpt:
for line in inpt:
- if line.startswith('#source'):
+ # Drop unneeded library tags as all the library's files
+ # are concatenated into one big file here:
+ # The 'part' and 'part of' library tags are removed.
+ if line.startswith('#source') or line.startswith('part '):
siva 2012/11/27 02:18:07 There is the danger of legal lines which start wit
Ivan Posva 2012/11/27 05:38:19 I understand all of these limitations (they went a
line = '// %s' % line
output.write(line)
shutil.move(tmp_name, options.output)
« no previous file with comments | « runtime/bin/bin.gypi ('k') | runtime/vm/vm.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698