OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/env python |
2 # | |
3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
4 # 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 |
5 # found in the LICENSE file. | 4 # found in the LICENSE file. |
6 | 5 |
7 import glob | 6 import glob |
8 import os | 7 import os |
9 import subprocess | 8 import subprocess |
10 import sys | 9 import sys |
11 | 10 |
12 from idl_option import GetOption, Option, ParseOptions | 11 from idl_option import GetOption, Option, ParseOptions |
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
343 print 'Done with %s\n\n' % src | 342 print 'Done with %s\n\n' % src |
344 if GetOption('ok'): | 343 if GetOption('ok'): |
345 open(diff, 'wt').write(output) | 344 open(diff, 'wt').write(output) |
346 if GetOption('halt'): | 345 if GetOption('halt'): |
347 return 1 | 346 return 1 |
348 else: | 347 else: |
349 print "\nSAME:\n src=%s\n gen=%s" % (src, gen) | 348 print "\nSAME:\n src=%s\n gen=%s" % (src, gen) |
350 if input: print ' ** Matched expected diff. **' | 349 if input: print ' ** Matched expected diff. **' |
351 print '\n' | 350 print '\n' |
352 | 351 |
| 352 |
353 if __name__ == '__main__': | 353 if __name__ == '__main__': |
354 sys.exit(Main(sys.argv[1:])) | 354 sys.exit(Main(sys.argv[1:])) |
355 | |
OLD | NEW |