svn commit: r343589 - head/usr.sbin/freebsd-update
Ed Maste
emaste at FreeBSD.org
Wed Jan 30 19:19:15 UTC 2019
Author: emaste
Date: Wed Jan 30 19:19:14 2019
New Revision: 343589
URL: https://svnweb.freebsd.org/changeset/base/343589
Log:
freebsd-update: regenerate man page database after update
These are currently not reproducible because they're built by the
makewhatis on the freebsd-update build host, not the one in the tree.
Regenerate after update, and later we can avoid including it in
freebsd-update data.
PR: 214545, 217389
Reviewed by: delphij
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D10482
Modified:
head/usr.sbin/freebsd-update/freebsd-update.sh
Modified: head/usr.sbin/freebsd-update/freebsd-update.sh
==============================================================================
--- head/usr.sbin/freebsd-update/freebsd-update.sh Wed Jan 30 18:56:45 2019 (r343588)
+++ head/usr.sbin/freebsd-update/freebsd-update.sh Wed Jan 30 19:19:14 2019 (r343589)
@@ -2943,6 +2943,17 @@ Kernel updates have been installed. Please reboot and
cap_mkdb ${BASEDIR}/etc/login.conf
fi
+ # Rebuild man page databases, if necessary.
+ for D in /usr/share/man /usr/share/openssl/man; do
+ if [ ! -d ${BASEDIR}/$D ]; then
+ continue
+ fi
+ if [ -z "$(find ${BASEDIR}/$D -type f -newer ${BASEDIR}/$D/mandoc.db)" ]; then
+ continue;
+ fi
+ makewhatis ${BASEDIR}/$D
+ done
+
# We've finished installing the world and deleting old files
# which are not shared libraries.
touch $1/worlddone
More information about the svn-src-head
mailing list