| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2009 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 """Makes sure that all EXE and DLL files in the provided directory were built | 6 """Makes sure that all EXE and DLL files in the provided directory were built |
| 7 correctly. | 7 correctly. |
| 8 | 8 |
| 9 Currently this tool will check that binaries were built with /NXCOMPAT and | 9 Currently this tool will check that binaries were built with /NXCOMPAT and |
| 10 /DYNAMICBASE set. | 10 /DYNAMICBASE set. |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 if __name__ == '__main__': | 56 if __name__ == '__main__': |
| 57 usage = "Usage: %prog [options] DIRECTORY" | 57 usage = "Usage: %prog [options] DIRECTORY" |
| 58 option_parser = optparse.OptionParser(usage=usage) | 58 option_parser = optparse.OptionParser(usage=usage) |
| 59 option_parser.add_option("-v", "--verbose", action="store_true", | 59 option_parser.add_option("-v", "--verbose", action="store_true", |
| 60 default=False, help="Print debug logging") | 60 default=False, help="Print debug logging") |
| 61 options, args = option_parser.parse_args() | 61 options, args = option_parser.parse_args() |
| 62 if not args: | 62 if not args: |
| 63 option_parser.print_help() | 63 option_parser.print_help() |
| 64 sys.exit(0) | 64 sys.exit(0) |
| 65 main(options, args) | 65 main(options, args) |
| OLD | NEW |