diff options
Diffstat (limited to 'scripts/update-docs.sh')
-rwxr-xr-x | scripts/update-docs.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/scripts/update-docs.sh b/scripts/update-docs.sh new file mode 100755 index 0000000..6fe1132 --- /dev/null +++ b/scripts/update-docs.sh @@ -0,0 +1,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/ \; |