OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 | 2 |
3 # Copyright 2015 The Chromium Authors. All rights reserved. | 3 # Copyright 2015 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 """Creates a script to run an "_incremental" .apk.""" | 7 """Creates a script to run an "_incremental" .apk.""" |
8 | 8 |
9 import argparse | 9 import argparse |
10 import os | 10 import os |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 'show_proguard_warning': pformat(options.show_proguard_warning), | 144 'show_proguard_warning': pformat(options.show_proguard_warning), |
145 'splits': pformat([relativize(p) for p in options.splits]), | 145 'splits': pformat([relativize(p) for p in options.splits]), |
146 } | 146 } |
147 | 147 |
148 with open(options.script_output_path, 'w') as script: | 148 with open(options.script_output_path, 'w') as script: |
149 script.write(SCRIPT_TEMPLATE.format(**template_args)) | 149 script.write(SCRIPT_TEMPLATE.format(**template_args)) |
150 | 150 |
151 os.chmod(options.script_output_path, 0750) | 151 os.chmod(options.script_output_path, 0750) |
152 | 152 |
153 if options.depfile: | 153 if options.depfile: |
154 build_utils.WriteDepfile( | 154 build_utils.WriteDepfile(options.depfile, options.script_output_path) |
155 options.depfile, | |
156 build_utils.GetPythonDependencies()) | |
157 | 155 |
158 | 156 |
159 if __name__ == '__main__': | 157 if __name__ == '__main__': |
160 sys.exit(main(sys.argv[1:])) | 158 sys.exit(main(sys.argv[1:])) |
OLD | NEW |