summaryrefslogtreecommitdiff
path: root/build-aux
diff options
context:
space:
mode:
authorDirk-Jan C. Binnema <djcb@djcbsoftware.nl>2022-07-06 00:56:48 +0300
committerDirk-Jan C. Binnema <djcb@djcbsoftware.nl>2022-07-06 01:05:22 +0300
commit3dc82e90c3c69c855fdaedd51ec4465a3067fc5f (patch)
treeda826e1bb179fef8f811a2c6391f80f977e029d9 /build-aux
parent7bcc676f9f9fe3ec87691504efaf7d08676b210c (diff)
build: don't install-info with DESTDIR
Diffstat (limited to 'build-aux')
-rw-r--r--build-aux/meson-install-info.sh13
1 files changed, 6 insertions, 7 deletions
diff --git a/build-aux/meson-install-info.sh b/build-aux/meson-install-info.sh
index 8389b69..9efe63d 100644
--- a/build-aux/meson-install-info.sh
+++ b/build-aux/meson-install-info.sh
@@ -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}