summaryrefslogtreecommitdiffstats
path: root/update-docs.sh
blob: 9dbbb260a1fa12ccfb19996c3a236a50e1fc3466 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

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/ \;