1
0
Fork 0
nvme-cli/Documentation/update-docs.sh

12 lines
297 B
Bash
Raw Normal View History

#!/bin/sh
# SPDX-License-Identifier: GPL-2.0-or-later
BUILDDIR="$(mktemp -d)"
trap 'rm -rf -- $BUILDDIR' EXIT
meson $BUILDDIR -Ddocs=all -Ddocs-build=true
ninja -C $BUILDDIR
find $BUILDDIR/Documentation -maxdepth 1 \
\( -name '*.1' -o -name '*.html' \) \
-exec cp {} Documentation/ \;