]> 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>
Mon, 5 Apr 2021 17:23:37 +0000 (13:23 -0400)
commit741223a65cd1752360c44341b762295f633e21cf
treeee4c83406ef83c8375eb2b3a27f1d3baf1a3c8f5
parent4bbfa3d3baf70492ad4c3eacace0f966f3ca7070
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
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D29575
usr.sbin/freebsd-update/freebsd-update.sh