commit f6e0870d334b8331db7c93daed31a26373742dc7 parent bf253b87c8679315759c86c6cabf6ff14aece41c Author: finwo <finwo@pm.me> Date: Thu, 6 Jun 2024 13:58:40 +0200 Make symlinks again instead of copies Diffstat:
| M | dist/dep | | | 4 | ++-- |
| M | src/command/install/index.sh | | | 4 | ++-- |
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/dist/dep b/dist/dep @@ -424,8 +424,8 @@ function cmd_install_dep { cat "${PKG_DIR}/${filesource}" | sed "s|__DIRNAME|${PKG_DIR}|g" >> "${CMD_INSTALL_PKG_DEST}/.dep/${filetarget}" ;; *) - # ls -sf "${CMD_INSTALL_PKG_DEST}/${name}/${filesource}" "${CMD_INSTALL_PKG_DEST}/.dep/${filetarget}" - cp "${PKG_DIR}/${filesource}" "${CMD_INSTALL_PKG_DEST}/.dep/${filetarget}" + ls -sf $(realpath "${CMD_INSTALL_PKG_DEST}/${name}/${filesource}") "${CMD_INSTALL_PKG_DEST}/.dep/${filetarget}" + # cp "${PKG_DIR}/${filesource}" "${CMD_INSTALL_PKG_DEST}/.dep/${filetarget}" ;; esac done < <(ini_foreach ini_output_section "${PKGINI}" "export.") diff --git a/src/command/install/index.sh b/src/command/install/index.sh @@ -173,8 +173,8 @@ function cmd_install_dep { cat "${PKG_DIR}/${filesource}" | sed "s|__DIRNAME|${PKG_DIR}|g" >> "${CMD_INSTALL_PKG_DEST}/.__NAME/${filetarget}" ;; *) - # ls -sf "${CMD_INSTALL_PKG_DEST}/${name}/${filesource}" "${CMD_INSTALL_PKG_DEST}/.__NAME/${filetarget}" - cp "${PKG_DIR}/${filesource}" "${CMD_INSTALL_PKG_DEST}/.__NAME/${filetarget}" + ls -sf $(realpath "${CMD_INSTALL_PKG_DEST}/${name}/${filesource}") "${CMD_INSTALL_PKG_DEST}/.__NAME/${filetarget}" + # cp "${PKG_DIR}/${filesource}" "${CMD_INSTALL_PKG_DEST}/.__NAME/${filetarget}" ;; esac done < <(ini_foreach ini_output_section "${PKGINI}" "export.")