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

Side by Side Diff: chrome/tools/build/mac/tweak_info_plist

Issue 8825016: Use `/usr/bin/env python` instead of `/usr/bin/python2.6`. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: i suck at grep Created 9 years 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | tools/mac/symbolicate_crash.py » ('j') | 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/python2.6 1 #!/usr/bin/env python
2 2
3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 3 # Copyright (c) 2011 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 # 7 #
8 # Xcode supports build variable substitutions and CPP; sadly, that doesn't work 8 # Xcode supports build variable substitutions and CPP; sadly, that doesn't work
9 # because: 9 # because:
10 # 10 #
11 # 1. Xcode wants to do the Info.plist work before it runs any build phases, 11 # 1. Xcode wants to do the Info.plist work before it runs any build phases,
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 # Info.plist will work perfectly well in any plist format, but traditionally 265 # Info.plist will work perfectly well in any plist format, but traditionally
266 # applications use xml1 for this, so convert it to ensure that it's valid. 266 # applications use xml1 for this, so convert it to ensure that it's valid.
267 proc = subprocess.Popen(['plutil', '-convert', 'xml1', '-o', DEST_INFO_PLIST, 267 proc = subprocess.Popen(['plutil', '-convert', 'xml1', '-o', DEST_INFO_PLIST,
268 temp_info_plist.name]) 268 temp_info_plist.name])
269 proc.wait() 269 proc.wait()
270 return proc.returncode 270 return proc.returncode
271 271
272 272
273 if __name__ == '__main__': 273 if __name__ == '__main__':
274 sys.exit(Main(sys.argv[1:])) 274 sys.exit(Main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « no previous file | tools/mac/symbolicate_crash.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698