blob: 6fe1132f05138235d1a3d6975013a79249851a8c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0-or-later
cd "$(git rev-parse --show-toplevel)" || exit 1
BUILDDIR="$(mktemp -d)"
trap 'rm -rf -- $BUILDDIR' EXIT
meson setup \
-Ddocs=all \
-Ddocs-build=true \
--force-fallback-for=libnvme \
"${BUILDDIR}"
meson compile -C "${BUILDDIR}"
find "${BUILDDIR}/Documentation" -maxdepth 1 \
\( -name '*.1' -o -name '*.html' \) \
-exec cp {} Documentation/ \;
|