Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(352)

Side by Side Diff: tools/gn/bin/roll_gn.py

Issue 1458603010: tools/gn: add python shebang directive to roll_gn script (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: set it executable - git update-index --chmod=+x tools/gn/bin/roll_gn.py - git diff --cached Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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())
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698