build: don't install-info with DESTDIR

This commit is contained in:
Dirk-Jan C. Binnema 2022-07-06 00:56:48 +03:00
parent 7bcc676f9f
commit 3dc82e90c3
1 changed files with 6 additions and 7 deletions

View File

@ -3,13 +3,12 @@
infodir=$1
infofile=$2
echo "DESTDIR: ${DESTDIR}" > boo.txt
echo "XX ${MESON_INSTALL_DESTDIR_PREFIX}" >> boo.txt
# Meson post-install script to update info metadata
install-info --info-dir ${MESON_INSTALL_DESTDIR_PREFIX}/${infodir} \
${MESON_INSTALL_DESTDIR_PREFIX}/${infodir}/${infofile}
# 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}
fi
gzip --force ${MESON_INSTALL_DESTDIR_PREFIX}/${infodir}/${infofile}