]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
freebsd-update: improve mandoc db generation
authorEd Maste <emaste@FreeBSD.org>
Sun, 4 Apr 2021 00:57:26 +0000 (20:57 -0400)
committerEd Maste <emaste@FreeBSD.org>
Tue, 13 Apr 2021 18:42:57 +0000 (14:42 -0400)
commit113f92b13ec65a1a298630c06a680997e46a155b
tree8dda3ee77ca61f2b01574cdeb8ccce91890955c9
parentfa5210b55a35ff217dec68b3cd25678447ad4f09
freebsd-update: improve mandoc db generation

freebsd-update compares the dates on man pages with mandoc.db, and if
any newer pages are found it regenerates mandoc.db.

Previously, if mandoc.db did not already exist the check failed and
freebsd-update then failed to create one.  Now, check that mandoc.db
exists before performing the check for newer pages.

Reported by: bdrewery (in D10482)
Reviewed by: gordon
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D29575

(cherry picked from commit 741223a65cd1752360c44341b762295f633e21cf)
usr.sbin/freebsd-update/freebsd-update.sh