blob: 088eb2b80704f2b9756ad46f0d7e5ed70407ddce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!/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 .
# We have to filter out some links that fail on case-insensitive filesystems
# Running makewhatis with the right arguments should work on mandoc systems.
echo "# This is an auto-generated file by $0" > links
/usr/src/regress/usr.bin/mandoc/db/mlinks/obj/mlinks mandoc.db | \
grep -v OCSP_crlID_new | \
grep -v bn_print | \
grep -v "<type>" | \
sort >> links
|