summaryrefslogtreecommitdiff
path: root/build-aux/meson-install-info.sh
blob: 0019249cf8a9bc0a2fd2d257c3e92308dbc21adb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

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 "${infodir}" "${infodir}/${infofile}"
    gzip --best --force "${infodir}/${infofile}"
fi