| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 # Copyright (c) 2014 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2014 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 # This is for bash on NaCl. Note that you cannot use external commands | 6 # This is for bash on NaCl. Note that you cannot use external commands |
| 7 # until the installation is completed. Also, you cannot use features | 7 # until the installation is completed. Also, you cannot use features |
| 8 # which nacl_io does not support yet (e.g., pipes and sub-shells). | 8 # which nacl_io does not support yet (e.g., pipes and sub-shells). |
| 9 | 9 |
| 10 set -e | 10 set -e |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 pkg update | 71 pkg update |
| 72 fi | 72 fi |
| 73 | 73 |
| 74 echo "===> Installing extra packages" | 74 echo "===> Installing extra packages" |
| 75 local extra_packages=" | 75 local extra_packages=" |
| 76 findutils \ | 76 findutils \ |
| 77 grep \ | 77 grep \ |
| 78 less \ | 78 less \ |
| 79 nano \ | 79 nano \ |
| 80 python \ | 80 python \ |
| 81 emacs \ |
| 81 vim" | 82 vim" |
| 82 pkg install -y -U $extra_packages | 83 pkg install -y -U $extra_packages |
| 83 | 84 |
| 84 local have_gcc=0 | 85 local have_gcc=0 |
| 85 if [[ ${TOOLCHAIN} == glibc ]]; then | 86 if [[ ${TOOLCHAIN} == glibc ]]; then |
| 86 if [[ ${NACL_ARCH} == i686 || ${NACL_ARCH} == x86_64 ]]; then | 87 if [[ ${NACL_ARCH} == i686 || ${NACL_ARCH} == x86_64 ]]; then |
| 87 echo "===> Installing compiler packages" | 88 echo "===> Installing compiler packages" |
| 88 dev_packages+=" \ | 89 dev_packages+=" \ |
| 89 binutils \ | 90 binutils \ |
| 90 gcc \ | 91 gcc \ |
| 91 mingn" | 92 mingn" |
| 92 have_gcc=1 | 93 have_gcc=1 |
| 93 pkg install -y -U $dev_packages | 94 pkg install -y -U $dev_packages |
| 94 fi | 95 fi |
| 95 fi | 96 fi |
| 96 | 97 |
| 97 if [[ ${have_gcc} == 0 ]]; then | 98 if [[ ${have_gcc} == 0 ]]; then |
| 98 echo "WARNING: \ | 99 echo "WARNING: \ |
| 99 emacs and gcc not yet available for your platform (coming soon)." | 100 emacs and gcc not yet available for your platform (coming soon)." |
| 100 fi | 101 fi |
| 101 } | 102 } |
| 102 | 103 |
| 103 CheckNaClEnabled | 104 CheckNaClEnabled |
| 104 InstallBasePackages $@ | 105 InstallBasePackages $@ |
| OLD | NEW |