summaryrefslogtreecommitdiffstats
path: root/doc/update-docs.sh
blob: 7765b9bd8bcf839e1a2c1070fc2376921c0c3c29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh -x

DESTDIR=$(pwd)

BUILDDIR="$(mktemp -d)"
trap 'rm -rf -- $BUILDDIR' EXIT

meson $BUILDDIR -Ddocs=man -Ddocs-build=true
ninja -C $BUILDDIR

rm -rf $DESTDIR/doc/man
mkdir $DESTDIR/doc/man

find $BUILDDIR/doc -maxdepth 1 -name '*.2' -exec cp {} $DESTDIR/doc/man \;

# The HTML doc is not ready yet
# rm -rf $DESTDIR/doc/html
# cp -R $BUILDDIR/doc/html $DESTDIR/doc/