| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 # | 2 # |
| 3 # Copyright (c) 2011 The Native Client Authors. All rights reserved. | 3 # Copyright (c) 2011 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 | 7 |
| 8 readonly SCRIPT_DIR="$(dirname "$0")" | 8 readonly SCRIPT_DIR="$(dirname "$0")" |
| 9 readonly SCRIPT_DIR_ABS="$(cd "${SCRIPT_DIR}" ; pwd -P)" | 9 readonly SCRIPT_DIR_ABS="$(cd "${SCRIPT_DIR}" ; pwd -P)" |
| 10 | 10 |
| 11 export NACL_SDK_ROOT=/path/to/native_client_sdk | 11 export NACL_SDK_ROOT=/ulg/native_client_sdk_0_5_1014 |
| 12 | 12 |
| 13 readonly BASE_SCRIPT="${NACL_SDK_ROOT}/third_party/scons-2.0.1/script/scons" | 13 readonly BASE_SCRIPT="${NACL_SDK_ROOT}/third_party/scons-2.0.1/script/scons" |
| 14 | 14 |
| 15 export PYTHONPATH="${NACL_SDK_ROOT}/third_party/scons-2.0.1/engine" | 15 export PYTHONPATH="${NACL_SDK_ROOT}/third_party/scons-2.0.1/engine" |
| 16 # We have to do this because scons overrides PYTHONPATH and does not preserve | 16 # We have to do this because scons overrides PYTHONPATH and does not preserve |
| 17 # what is provided by the OS. The custom variable name won't be overwritten. | 17 # what is provided by the OS. The custom variable name won't be overwritten. |
| 18 export PYMOX="${NACL_SDK_ROOT}/third_party/pymox" | 18 export PYMOX="${NACL_SDK_ROOT}/third_party/pymox" |
| 19 | 19 |
| 20 "${BASE_SCRIPT}" --file=build.scons \ | 20 "${BASE_SCRIPT}" --file=build.scons \ |
| 21 --site-dir="${NACL_SDK_ROOT}/build_tools/nacl_sdk_scons" \ | 21 --site-dir="${NACL_SDK_ROOT}/build_tools/nacl_sdk_scons" \ |
| 22 $* | 22 $* |
| 23 | 23 |
| OLD | NEW |