aboutsummaryrefslogtreecommitdiff
path: root/man/update_links.sh
blob: 04a86945fe7e72438d063fc5a1207799944379ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

# Run this periodically to ensure that the manpage links are up to date
(
    cd /usr/src/usr.bin/mandoc/
    make obj
    make cleandir
    make depend
    make
    cd /usr/src/regress/usr.bin/mandoc/db/mlinks/
    make obj
    make cleandir
    make
)

makewhatis -a .

echo "# This is an auto-generated file by $0" > links
/usr/src/regress/usr.bin/mandoc/db/mlinks/obj/mlinks mandoc.db | sort >> links