OLD | NEW |
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 Loading... |
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:])) |
OLD | NEW |