aboutsummaryrefslogtreecommitdiff
blob: 699a3800a9d3f964ca4f843a9cb3e9499a455695 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
# This script should be invoked by meson itself (via 'meson dist')
# See https://github.com/mesonbuild/meson/issues/2166 and more specifically,
# https://github.com/mesonbuild/meson/issues/2166#issuecomment-629696911.
set -eu

cd "${MESON_DIST_ROOT}"
mkdir build
meson setup build -Dbuild_manpages=enabled
meson compile -C build
cp build/man/* man/
rm -rf build