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

Side by Side Diff: frog/scripts/list_frog_files.py

Issue 9379015: Fix issue 1615 . Because frog doesn't really produce an artifact, (Closed) Base URL: http://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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « dart.gyp ('k') | no next file » | 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 5
6 # traverses frog and lists all possible sources that should be marked as 6 # traverses frog and lists all possible sources that should be marked as
7 # dependencies for building frog/frogsh. 7 # dependencies for building frog/frogsh.
8 8
9 import os 9 import os
10 import sys 10 import sys
11 11
12 def main(argv): 12 def main(argv):
13 for root, directories, files in os.walk(os.curdir): 13 if len(argv) == 1:
14 dir = os.curdir
15 else:
16 dir = argv[1]
17 for root, directories, files in os.walk(dir):
14 if root == os.curdir: 18 if root == os.curdir:
15 directories[0:] = ['leg', 'lib', 19 directories[0:] = ['leg', 'lib',
16 os.path.join('..', 'client', 'dom', 'frog'), 20 os.path.join('..', 'client', 'dom', 'frog'),
17 os.path.join('..', 'client', 'html', 'release')] 21 os.path.join('..', 'client', 'html', 'release')]
18 for filename in files: 22 for filename in files:
19 if filename.endswith('.dart') or filename.endswith('.js'): 23 if filename.endswith('.dart') or filename.endswith('.js'):
20 print os.path.relpath(os.path.join(root, filename)) 24 print os.path.relpath(os.path.join(root, filename))
21 25
22 if __name__ == '__main__': 26 if __name__ == '__main__':
23 sys.exit(main(sys.argv)) 27 sys.exit(main(sys.argv))
OLDNEW
« no previous file with comments | « dart.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698