summaryrefslogtreecommitdiff
path: root/build-aux/meson-install-info.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build-aux/meson-install-info.sh')
-rw-r--r--build-aux/meson-install-info.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/build-aux/meson-install-info.sh b/build-aux/meson-install-info.sh
new file mode 100644
index 0000000..853ea94
--- /dev/null
+++ b/build-aux/meson-install-info.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+infodir=$1
+infofile=$2
+
+# Meson post-install script to update info metadata
+install-info --info-dir ${MESON_INSTALL_DESTDIR_PREFIX}/${infodir} \
+ ${MESON_INSTALL_DESTDIR_PREFIX}/${infodir}/${infofile}
+
+gzip --force ${MESON_INSTALL_DESTDIR_PREFIX}/${infodir}/${infofile}