diff options
Diffstat (limited to 'mk/install/install-info')
-rw-r--r-- | mk/install/install-info | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/mk/install/install-info b/mk/install/install-info new file mode 100644 index 00000000000..b55194c76a4 --- /dev/null +++ b/mk/install/install-info @@ -0,0 +1,25 @@ +# $NetBSD +# +# Handle registration of Info files; used by texinfo.mk. +# + +INFO_FILES="@INFO_FILES@" +INSTALL_INFO="@INSTALL_INFO@" +INFO_DIR="@INFO_DIR@" + +case ${STAGE} in +POST-INSTALL) + for f in ${INFO_FILES}; do + ${INSTALL_INFO} --delete --info-dir=${PKG_PREFIX}/${INFO_DIR} \ + ${PKG_PREFIX}/${INFO_DIR}/${f} 1>/dev/null 2>&1 + ${INSTALL_INFO} --info-dir=${PKG_PREFIX}/${INFO_DIR} \ + ${PKG_PREFIX}/${INFO_DIR}/${f} + done + ;; +DEINSTALL) + for f in ${INFO_FILES}; do + ${INSTALL_INFO} --delete --info-dir=${PKG_PREFIX}/${INFO_DIR} \ + ${PKG_PREFIX}/${INFO_DIR}/${f} 1>/dev/null 2>&1 + done + ;; +esac |