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

Side by Side Diff: tools/copy_dart.py

Issue 9789004: Move copy_dart.py from client to tools (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « lib/dom/scripts/dartdomgenerator.py ('k') | utils/tip/copy_libs.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 2 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
3 # for details. All rights reserved. Use of this source code is governed by a 3 # for details. All rights reserved. Use of this source code is governed by a
4 # BSD-style license that can be found in the LICENSE file. 4 # BSD-style license that can be found in the LICENSE file.
5 """Used to merge and copy dart source files for deployment to AppEngine""" 5 """Used to merge and copy dart source files for deployment to AppEngine"""
6 6
7 import fileinput 7 import fileinput
8 import sys 8 import sys
9 import shutil 9 import shutil
10 import os 10 import os
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 mergefiles([normjoin(dirname(lib), s) for s in library.sources], f) 142 mergefiles([normjoin(dirname(lib), s) for s in library.sources], f)
143 143
144 for (i, prefix) in library.imports: 144 for (i, prefix) in library.imports:
145 if not i.startswith('dart:'): 145 if not i.startswith('dart:'):
146 worklist.append(normjoin(dirname(lib), i)); 146 worklist.append(normjoin(dirname(lib), i));
147 147
148 return 0 148 return 0
149 149
150 if __name__ == '__main__': 150 if __name__ == '__main__':
151 sys.exit(main(*sys.argv[1:])) 151 sys.exit(main(*sys.argv[1:]))
OLDNEW
« no previous file with comments | « lib/dom/scripts/dartdomgenerator.py ('k') | utils/tip/copy_libs.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698