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

Side by Side Diff: pnacl/tc_component_packager.py

Issue 12450015: **/*.py: use /usr/bin/env to find python Base URL: https://chromium.googlesource.com/native_client/src/native_client@master
Patch Set: Created 7 years, 9 months 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 | « pnacl/scripts/parse_llvm_test_report.py ('k') | pnacl/unsupported/driver/pnacl-pexecheck.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/python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. 2 # Copyright (c) 2012 The Native Client Authors. All rights reserved.
3 # 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
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 ''' 6 '''
7 This script extracts sub-components from a fully populated 7 This script extracts sub-components from a fully populated
8 toolchain/pnacl_linux_XXX/ directory to create custom toolchains. 8 toolchain/pnacl_linux_XXX/ directory to create custom toolchains.
9 It is intentioanlly kept simple. 9 It is intentioanlly kept simple.
10 10
11 For usage information run: 11 For usage information run:
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 152
153 assert len(args) == 3 153 assert len(args) == 3
154 src, dst, patterns = args 154 src, dst, patterns = args
155 assert patterns in COMPONENTS 155 assert patterns in COMPONENTS
156 assert os.path.exists(src) 156 assert os.path.exists(src)
157 157
158 CopyMatching(src, dst, COMPONENTS[patterns]) 158 CopyMatching(src, dst, COMPONENTS[patterns])
159 159
160 if __name__ == '__main__': 160 if __name__ == '__main__':
161 sys.exit(Main()) 161 sys.exit(Main())
OLDNEW
« no previous file with comments | « pnacl/scripts/parse_llvm_test_report.py ('k') | pnacl/unsupported/driver/pnacl-pexecheck.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698