OLD | NEW |
| (Empty) |
1 #!/usr/bin/env python | |
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 | |
4 # BSD-style license that can be found in the LICENSE file. | |
5 | |
6 # traverses frog and lists all possible sources that should be marked as | |
7 # dependencies for building frog. | |
8 | |
9 import os | |
10 import sys | |
11 | |
12 def main(argv): | |
13 if len(argv) == 1: | |
14 dir = os.curdir | |
15 else: | |
16 dir = argv[1] | |
17 for root, directories, files in os.walk(dir): | |
18 if root == os.curdir: | |
19 directories[0:] = ['leg', 'lib', | |
20 os.path.join('..', 'client', 'dom', 'frog'), | |
21 os.path.join('..', 'client', 'html', 'release')] | |
22 for filename in files: | |
23 if filename.endswith(('.dart', '.gypi', '.js')): | |
24 print os.path.relpath(os.path.join(root, filename)) | |
25 | |
26 if __name__ == '__main__': | |
27 sys.exit(main(sys.argv)) | |
OLD | NEW |