| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # | 2 # |
| 3 # Copyright 2014 The Chromium Authors. All rights reserved. | 3 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
| 6 | 6 |
| 7 import optparse | 7 import optparse |
| 8 import os | 8 import os |
| 9 import sys | 9 import sys |
| 10 | 10 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 build_utils.AddDepfileOption(parser) | 33 build_utils.AddDepfileOption(parser) |
| 34 parser.add_option('--classes-dir', help='Directory to extract .class files.') | 34 parser.add_option('--classes-dir', help='Directory to extract .class files.') |
| 35 parser.add_option('--jars', help='Paths to jars to extract.') | 35 parser.add_option('--jars', help='Paths to jars to extract.') |
| 36 parser.add_option('--stamp', help='Path to touch on success.') | 36 parser.add_option('--stamp', help='Path to touch on success.') |
| 37 | 37 |
| 38 options, _ = parser.parse_args() | 38 options, _ = parser.parse_args() |
| 39 | 39 |
| 40 ExtractJars(options) | 40 ExtractJars(options) |
| 41 | 41 |
| 42 if options.depfile: | 42 if options.depfile: |
| 43 build_utils.WriteDepfile(options.depfile, | 43 build_utils.WriteDepfile(options.depfile, options.stamp) |
| 44 build_utils.GetPythonDependencies()) | |
| 45 | 44 |
| 46 if options.stamp: | 45 if options.stamp: |
| 47 build_utils.Touch(options.stamp) | 46 build_utils.Touch(options.stamp) |
| 48 | 47 |
| 49 | 48 |
| 50 if __name__ == '__main__': | 49 if __name__ == '__main__': |
| 51 sys.exit(main()) | 50 sys.exit(main()) |
| 52 | 51 |
| OLD | NEW |