infodir: allow absolute path

Fixes #2548
This commit is contained in:
Dirk-Jan C. Binnema
2023-09-03 17:33:08 +03:00
parent 4d3d94d7b1
commit b01973205d
3 changed files with 7 additions and 7 deletions

View File

@ -4,11 +4,10 @@ infodir=$1
infofile=$2
# Meson post-install script to update info metadata
# If DESTDIR is set, do _not_ install-info, since it's only a temporary
# install
if test -z "${DESTDIR}"; then
install-info --info-dir ${MESON_INSTALL_DESTDIR_PREFIX}/${infodir} \
${MESON_INSTALL_DESTDIR_PREFIX}/${infodir}/${infofile}
install-info --info-dir "${infodir}" "${infodir}/${infofile}"
gzip --force "${infodir}/${infofile}"
fi
gzip --force ${MESON_INSTALL_DESTDIR_PREFIX}/${infodir}/${infofile}