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 """Archives a set of files. | 7 """Archives a set of files. |
8 """ | 8 """ |
9 | 9 |
10 import ast | 10 import ast |
(...skipping 16 matching lines...) Expand all Loading... |
27 | 27 |
28 options, _ = parser.parse_args() | 28 options, _ = parser.parse_args() |
29 | 29 |
30 inputs = ast.literal_eval(options.inputs) | 30 inputs = ast.literal_eval(options.inputs) |
31 output = options.output | 31 output = options.output |
32 base_dir = options.base_dir | 32 base_dir = options.base_dir |
33 | 33 |
34 build_utils.DoZip(inputs, output, base_dir) | 34 build_utils.DoZip(inputs, output, base_dir) |
35 | 35 |
36 if options.depfile: | 36 if options.depfile: |
37 build_utils.WriteDepfile( | 37 build_utils.WriteDepfile(options.depfile, output) |
38 options.depfile, | |
39 build_utils.GetPythonDependencies()) | |
40 | 38 |
41 | 39 |
42 if __name__ == '__main__': | 40 if __name__ == '__main__': |
43 sys.exit(main()) | 41 sys.exit(main()) |
OLD | NEW |