| 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 optparse | 9 import optparse |
| 10 import shutil | 10 import shutil |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 files = [] | 37 files = [] |
| 38 for file_arg in options.files: | 38 for file_arg in options.files: |
| 39 files += build_utils.ParseGypList(file_arg) | 39 files += build_utils.ParseGypList(file_arg) |
| 40 | 40 |
| 41 for f in files: | 41 for f in files: |
| 42 shutil.copy(f, options.dest) | 42 shutil.copy(f, options.dest) |
| 43 | 43 |
| 44 if options.depfile: | 44 if options.depfile: |
| 45 build_utils.WriteDepfile( | 45 build_utils.WriteDepfile( |
| 46 options.depfile, | 46 options.depfile, |
| 47 options.files + build_utils.GetPythonDependencies()) | 47 files + build_utils.GetPythonDependencies()) |
| 48 | 48 |
| 49 if options.stamp: | 49 if options.stamp: |
| 50 build_utils.Touch(options.stamp) | 50 build_utils.Touch(options.stamp) |
| 51 | 51 |
| 52 | 52 |
| 53 if __name__ == '__main__': | 53 if __name__ == '__main__': |
| 54 sys.exit(main(sys.argv[1:])) | 54 sys.exit(main(sys.argv[1:])) |
| 55 | 55 |
| OLD | NEW |