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