| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 # Copyright (c) 2011 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2011 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 source pkg_info | |
| 7 source ../../build_tools/common.sh | |
| 8 | 6 |
| 9 EXECUTABLES="src/lua src/luac" | 7 EXECUTABLES="src/lua src/luac" |
| 10 | 8 |
| 11 BuildStep() { | 9 BuildStep() { |
| 12 Banner "Build ${PACKAGE_NAME}" | 10 Banner "Build ${PACKAGE_NAME}" |
| 13 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} | 11 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} |
| 14 if [ "${NACL_GLIBC}" = "1" ]; then | 12 if [ "${NACL_GLIBC}" = "1" ]; then |
| 15 PLAT=nacl-glibc | 13 PLAT=nacl-glibc |
| 16 else | 14 else |
| 17 PLAT=nacl-newlib | 15 PLAT=nacl-newlib |
| (...skipping 16 matching lines...) Expand all Loading... |
| 34 cd src | 32 cd src |
| 35 if [ "${NACL_ARCH}" = pnacl ]; then | 33 if [ "${NACL_ARCH}" = pnacl ]; then |
| 36 # Just do the x86-64 version for now. | 34 # Just do the x86-64 version for now. |
| 37 TranslateAndWriteSelLdrScript lua x86-64 lua.x86-64.nexe lua.sh | 35 TranslateAndWriteSelLdrScript lua x86-64 lua.x86-64.nexe lua.sh |
| 38 TranslateAndWriteSelLdrScript luac x86-64 luac.x86-64.nexe luac.sh | 36 TranslateAndWriteSelLdrScript luac x86-64 luac.x86-64.nexe luac.sh |
| 39 else | 37 else |
| 40 WriteSelLdrScript lua.sh lua | 38 WriteSelLdrScript lua.sh lua |
| 41 WriteSelLdrScript luac.sh luac | 39 WriteSelLdrScript luac.sh luac |
| 42 fi | 40 fi |
| 43 } | 41 } |
| 44 | |
| 45 | |
| 46 PackageInstall | |
| 47 exit 0 | |
| OLD | NEW |