OLD | NEW |
1 # Copyright (c) 2012 The Native Client Authors. All rights reserved. | 1 # Copyright (c) 2012 The Native Client Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 # | 4 # |
5 # Environment variable NACL_ARCH should be set to one of the following | 5 # Environment variable NACL_ARCH should be set to one of the following |
6 # values: i686 x86_64 pnacl arm | 6 # values: i686 x86_64 pnacl arm |
7 | 7 |
8 | 8 |
9 # NAMING CONVENTION | 9 # NAMING CONVENTION |
10 # ================= | 10 # ================= |
(...skipping 1495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1506 LogExecute cp "${START_DIR}/pkg_info" "${INSTALL_DIR}" | 1506 LogExecute cp "${START_DIR}/pkg_info" "${INSTALL_DIR}" |
1507 if [ "${NACL_DEBUG}" = "1" ]; then | 1507 if [ "${NACL_DEBUG}" = "1" ]; then |
1508 echo "BUILD_CONFIG=debug" >> "${INSTALL_DIR}/pkg_info" | 1508 echo "BUILD_CONFIG=debug" >> "${INSTALL_DIR}/pkg_info" |
1509 else | 1509 else |
1510 echo "BUILD_CONFIG=release" >> "${INSTALL_DIR}/pkg_info" | 1510 echo "BUILD_CONFIG=release" >> "${INSTALL_DIR}/pkg_info" |
1511 fi | 1511 fi |
1512 echo "BUILD_ARCH=${NACL_ARCH}" >> "${INSTALL_DIR}/pkg_info" | 1512 echo "BUILD_ARCH=${NACL_ARCH}" >> "${INSTALL_DIR}/pkg_info" |
1513 echo "BUILD_TOOLCHAIN=${TOOLCHAIN}" >> "${INSTALL_DIR}/pkg_info" | 1513 echo "BUILD_TOOLCHAIN=${TOOLCHAIN}" >> "${INSTALL_DIR}/pkg_info" |
1514 echo "BUILD_SDK_VERSION=${NACL_SDK_VERSION}" >> "${INSTALL_DIR}/pkg_info" | 1514 echo "BUILD_SDK_VERSION=${NACL_SDK_VERSION}" >> "${INSTALL_DIR}/pkg_info" |
1515 echo "BUILD_NACLPORTS_REVISION=${FULL_REVISION}" >> "${INSTALL_DIR}/pkg_info" | 1515 echo "BUILD_NACLPORTS_REVISION=${FULL_REVISION}" >> "${INSTALL_DIR}/pkg_info" |
1516 LogExecute tar cjf "${PACKAGE_FILE}" -C "${INSTALL_DIR}" . | 1516 if [ "${OS_NAME}" = "Darwin" ]; then |
| 1517 # OSX likes to create files starting with ._. We don't want to package |
| 1518 # these. |
| 1519 local args="--exclude ._*" |
| 1520 else |
| 1521 local args="" |
| 1522 fi |
| 1523 LogExecute tar cjf "${PACKAGE_FILE}" -C "${INSTALL_DIR}" ${args} . |
1517 } | 1524 } |
1518 | 1525 |
1519 | 1526 |
1520 ZipPublishDir() { | 1527 ZipPublishDir() { |
1521 # If something exists in the publish directory, zip it for download by mingn. | 1528 # If something exists in the publish directory, zip it for download by mingn. |
1522 if [ "${NACLPORTS_QUICKBUILD:-}" = "1" ]; then | 1529 if [ "${NACLPORTS_QUICKBUILD:-}" = "1" ]; then |
1523 return | 1530 return |
1524 fi | 1531 fi |
1525 if [ -d "${PUBLISH_DIR}" ]; then | 1532 if [ -d "${PUBLISH_DIR}" ]; then |
1526 # Remove existing zip as it may contain only some architectures. | 1533 # Remove existing zip as it may contain only some architectures. |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1658 # These functions are called when this script is imported to do | 1665 # These functions are called when this script is imported to do |
1659 # any essential checking/setup operations. | 1666 # any essential checking/setup operations. |
1660 ###################################################################### | 1667 ###################################################################### |
1661 CheckToolchain | 1668 CheckToolchain |
1662 CheckPatchVersion | 1669 CheckPatchVersion |
1663 CheckSDKVersion | 1670 CheckSDKVersion |
1664 PatchSpecsFile | 1671 PatchSpecsFile |
1665 InjectSystemHeaders | 1672 InjectSystemHeaders |
1666 InstallConfigSite | 1673 InstallConfigSite |
1667 GetRevision | 1674 GetRevision |
OLD | NEW |