| OLD | NEW |
| 1 #!/usr/bin/env python |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 2 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 4 | 5 |
| 5 """An auto-roller for GN binaries into Chromium. | 6 """An auto-roller for GN binaries into Chromium. |
| 6 | 7 |
| 7 This script is used to update the GN binaries that a Chromium | 8 This script is used to update the GN binaries that a Chromium |
| 8 checkout uses. In order to update the binaries, one must follow | 9 checkout uses. In order to update the binaries, one must follow |
| 9 four steps in order: | 10 four steps in order: |
| 10 | 11 |
| (...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 452 def Call(self, cmd, cwd=None): | 453 def Call(self, cmd, cwd=None): |
| 453 proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, shell=True, | 454 proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, shell=True, |
| 454 cwd=(cwd or self.chromium_src_dir)) | 455 cwd=(cwd or self.chromium_src_dir)) |
| 455 out, err = proc.communicate() | 456 out, err = proc.communicate() |
| 456 return proc.returncode, out, err | 457 return proc.returncode, out, err |
| 457 | 458 |
| 458 | 459 |
| 459 if __name__ == '__main__': | 460 if __name__ == '__main__': |
| 460 roller = GNRoller() | 461 roller = GNRoller() |
| 461 sys.exit(roller.Roll()) | 462 sys.exit(roller.Roll()) |
| OLD | NEW |