| 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 """Copies files to a directory.""" | 7 """Copies files to a directory.""" |
| 8 | 8 |
| 9 import itertools | 9 import itertools |
| 10 import optparse | 10 import optparse |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 | 97 |
| 98 deps = [] | 98 deps = [] |
| 99 | 99 |
| 100 if options.files: | 100 if options.files: |
| 101 DoCopy(options, deps) | 101 DoCopy(options, deps) |
| 102 | 102 |
| 103 if options.renaming_sources: | 103 if options.renaming_sources: |
| 104 DoRenaming(options, deps) | 104 DoRenaming(options, deps) |
| 105 | 105 |
| 106 if options.depfile: | 106 if options.depfile: |
| 107 build_utils.WriteDepfile( | 107 assert options.stamp |
| 108 options.depfile, | 108 build_utils.WriteDepfile(options.depfile, options.stamp, deps) |
| 109 deps + build_utils.GetPythonDependencies()) | |
| 110 | 109 |
| 111 if options.stamp: | 110 if options.stamp: |
| 112 build_utils.Touch(options.stamp) | 111 build_utils.Touch(options.stamp) |
| 113 | 112 |
| 114 | 113 |
| 115 if __name__ == '__main__': | 114 if __name__ == '__main__': |
| 116 sys.exit(main(sys.argv[1:])) | 115 sys.exit(main(sys.argv[1:])) |
| 117 | 116 |
| OLD | NEW |