OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
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 #@ PNaCl toolchain build script | 6 #@ PNaCl toolchain build script |
7 #@------------------------------------------------------------------- | 7 #@------------------------------------------------------------------- |
8 #@ This script builds the ARM and PNaCl untrusted toolchains. | 8 #@ This script builds the ARM and PNaCl untrusted toolchains. |
9 #@ It MUST be run from the native_client/ directory. | 9 #@ It MUST be run from the native_client/ directory. |
10 ###################################################################### | 10 ###################################################################### |
(...skipping 826 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
837 feature-version-file-install() { | 837 feature-version-file-install() { |
838 local install_root=$1 | 838 local install_root=$1 |
839 # Scons tests can check this version number to decide whether to | 839 # Scons tests can check this version number to decide whether to |
840 # enable tests for toolchain bug fixes or new features. This allows | 840 # enable tests for toolchain bug fixes or new features. This allows |
841 # tests to be enabled on the toolchain buildbots/trybots before the | 841 # tests to be enabled on the toolchain buildbots/trybots before the |
842 # new toolchain version is rolled into the pinned version (i.e. before | 842 # new toolchain version is rolled into the pinned version (i.e. before |
843 # the tests would pass on the main NaCl buildbots/trybots). | 843 # the tests would pass on the main NaCl buildbots/trybots). |
844 # | 844 # |
845 # If you are adding a test that depends on a toolchain change, you | 845 # If you are adding a test that depends on a toolchain change, you |
846 # can increment this version number manually. | 846 # can increment this version number manually. |
847 echo 24 > "${install_root}/FEATURE_VERSION" | 847 echo 25 > "${install_root}/FEATURE_VERSION" |
848 } | 848 } |
849 | 849 |
850 #@ driver-install-translator - Install driver scripts for translator component | 850 #@ driver-install-translator - Install driver scripts for translator component |
851 driver-install-translator() { | 851 driver-install-translator() { |
852 local destdir="${INSTALL_TRANSLATOR}/bin" | 852 local destdir="${INSTALL_TRANSLATOR}/bin" |
853 | 853 |
854 driver-install-python "${destdir}" pnacl-translate.py | 854 driver-install-python "${destdir}" pnacl-translate.py |
855 | 855 |
856 echo """HAS_FRONTEND=0""" > "${destdir}"/driver.conf | 856 echo """HAS_FRONTEND=0""" > "${destdir}"/driver.conf |
857 | 857 |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1036 | 1036 |
1037 if [ "$(type -t $1)" != "function" ]; then | 1037 if [ "$(type -t $1)" != "function" ]; then |
1038 #Usage | 1038 #Usage |
1039 echo "ERROR: unknown function '$1'." >&2 | 1039 echo "ERROR: unknown function '$1'." >&2 |
1040 echo "For help, try:" | 1040 echo "For help, try:" |
1041 echo " $0 help" | 1041 echo " $0 help" |
1042 exit 1 | 1042 exit 1 |
1043 fi | 1043 fi |
1044 | 1044 |
1045 "$@" | 1045 "$@" |
OLD | NEW |