| OLD | NEW |
| 1 #! -*- python -*- | 1 #!/usr/bin/env python |
| 2 # | |
| 3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 4 # 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 |
| 5 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 6 | 5 |
| 7 """Build and install all the third-party tools and libraries required to build | 6 """Build and install all the third-party tools and libraries required to build |
| 8 the SDK code. To add a script, add it to the array |THIRD_PARTY_SCRIPTS|. | 7 the SDK code. To add a script, add it to the array |THIRD_PARTY_SCRIPTS|. |
| 9 Before running the scripts, a couple of environment variables get set: | 8 Before running the scripts, a couple of environment variables get set: |
| 10 PYTHONPATH - append this script's dir to the search path for module import. | 9 PYTHONPATH - append this script's dir to the search path for module import. |
| 11 NACL_SDK_ROOT - forced to point to the root of this repo. | 10 NACL_SDK_ROOT - forced to point to the root of this repo. |
| 12 """ | 11 """ |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 ] | 70 ] |
| 72 | 71 |
| 73 for script in THIRD_PARTY_SCRIPTS: | 72 for script in THIRD_PARTY_SCRIPTS: |
| 74 print "Running install script: %s" % os.path.join(SCRIPT_DIR, script) | 73 print "Running install script: %s" % os.path.join(SCRIPT_DIR, script) |
| 75 py_command = [sys.executable, os.path.join(SCRIPT_DIR, script)] | 74 py_command = [sys.executable, os.path.join(SCRIPT_DIR, script)] |
| 76 subprocess.check_call(py_command + script_argv, env=shell_env) | 75 subprocess.check_call(py_command + script_argv, env=shell_env) |
| 77 | 76 |
| 78 | 77 |
| 79 if __name__ == '__main__': | 78 if __name__ == '__main__': |
| 80 main(sys.argv[1:]) | 79 main(sys.argv[1:]) |
| OLD | NEW |