summaryrefslogtreecommitdiff
path: root/usr.sbin/freebsd-update
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2019-01-30 19:19:14 +0000
committerEd Maste <emaste@FreeBSD.org>2019-01-30 19:19:14 +0000
commit9c812c8d4e60e030786f87fb88dfe9bb6a470118 (patch)
tree2ab0d0221225d114cba35656161c87f2a6af8e8a /usr.sbin/freebsd-update
parent441a6b699f953ab4a5889b728c9ecb9cd76aa34d (diff)
downloadsrc-test-9c812c8d4e60e030786f87fb88dfe9bb6a470118.tar.gz
src-test-9c812c8d4e60e030786f87fb88dfe9bb6a470118.zip
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
Notes
Notes: svn path=/head/; revision=343589
Diffstat (limited to 'usr.sbin/freebsd-update')
-rw-r--r--usr.sbin/freebsd-update/freebsd-update.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/usr.sbin/freebsd-update/freebsd-update.sh b/usr.sbin/freebsd-update/freebsd-update.sh
index 2ed1f43fa0b1c..8349fccb43013 100644
--- a/usr.sbin/freebsd-update/freebsd-update.sh
+++ b/usr.sbin/freebsd-update/freebsd-update.sh
@@ -2943,6 +2943,17 @@ Kernel updates have been installed. Please reboot and run
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