| OLD | NEW |
| 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 Loading... |
| 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:])) |
| OLD | NEW |