OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/env python |
2 # | 2 # |
3 # Copyright (c) 2012 The Native Client Authors. All rights reserved. | 3 # Copyright (c) 2012 The Native Client 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 """Obtain objdump and gas binaries. | 7 """Obtain objdump and gas binaries. |
8 | 8 |
9 Usage: | 9 Usage: |
10 obtain_binutils.py <objdump> <gas> | 10 obtain_binutils.py <objdump> <gas> |
11 | 11 |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 shutil.copy(os.path.join(CHECKOUT_DIR, 'binutils', 'objdump'), objdump) | 73 shutil.copy(os.path.join(CHECKOUT_DIR, 'binutils', 'objdump'), objdump) |
74 shutil.copy(os.path.join(CHECKOUT_DIR, 'gas', 'as-new'), gas) | 74 shutil.copy(os.path.join(CHECKOUT_DIR, 'gas', 'as-new'), gas) |
75 finally: | 75 finally: |
76 shutil.rmtree(CHECKOUT_DIR) | 76 shutil.rmtree(CHECKOUT_DIR) |
77 | 77 |
78 print 'ok' | 78 print 'ok' |
79 | 79 |
80 | 80 |
81 if __name__ == '__main__': | 81 if __name__ == '__main__': |
82 main() | 82 main() |
OLD | NEW |