]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
scripts: Update update-docs.sh scripts
authorDaniel Wagner <dwagner@suse.de>
Fri, 23 Jun 2023 07:20:49 +0000 (09:20 +0200)
committerDaniel Wagner <wagi@monom.org>
Wed, 28 Jun 2023 11:19:23 +0000 (13:19 +0200)
libnvme is not downloaded automatically anymore. Thus use
--force-fallback-for to fetch it when updating the documentation.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
scripts/update-docs.sh

index 1f3f67718c3d532dcd0586c5ef3d445d3a089adf..6fe1132f05138235d1a3d6975013a79249851a8c 100755 (executable)
@@ -6,8 +6,12 @@ cd "$(git rev-parse --show-toplevel)" || exit 1
 BUILDDIR="$(mktemp -d)"
 trap 'rm -rf -- $BUILDDIR' EXIT
 
-meson $BUILDDIR -Ddocs=all -Ddocs-build=true
-ninja -C $BUILDDIR
-find $BUILDDIR/Documentation -maxdepth 1 \
+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/ \;