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

Side by Side Diff: tools/grit/grit_info.py

Issue 6245002: [grit] Avoid intermediate files for HTML inlining (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address tony's comments Created 9 years, 11 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 | « tools/grit/grit/node/message.py ('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/python 1 #!/usr/bin/python
2 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 '''Tool to determine inputs and outputs of a grit file. 6 '''Tool to determine inputs and outputs of a grit file.
7 ''' 7 '''
8 8
9 import optparse 9 import optparse
10 import os 10 import os
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 print '\n'.join(inputs) 102 print '\n'.join(inputs)
103 elif options.outputs: 103 elif options.outputs:
104 if len(args) < 2: 104 if len(args) < 2:
105 PrintUsage() 105 PrintUsage()
106 return 1 106 return 1
107 107
108 for f in args[1:]: 108 for f in args[1:]:
109 outputs = [posixpath.join(args[0], f) for f in Outputs(f, defines)] 109 outputs = [posixpath.join(args[0], f) for f in Outputs(f, defines)]
110 print '\n'.join(outputs) 110 print '\n'.join(outputs)
111 else: 111 else:
112 PringUsage() 112 PrintUsage()
tony 2011/01/14 19:53:10 D'oh
113 return 1 113 return 1
114 return 0 114 return 0
115 115
116 116
117 if __name__ == '__main__': 117 if __name__ == '__main__':
118 sys.exit(main(sys.argv)) 118 sys.exit(main(sys.argv))
OLDNEW
« no previous file with comments | « tools/grit/grit/node/message.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698