Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/freebsd-update/freebsd-update.sh
Show First 20 Lines • Show All 2,901 Lines • ▼ Show 20 Lines | if [ ${BASEDIR}/etc/master.passwd -nt ${BASEDIR}/etc/spwd.db ] || | ||||
pwd_mkdb -d ${BASEDIR}/etc ${BASEDIR}/etc/master.passwd | pwd_mkdb -d ${BASEDIR}/etc ${BASEDIR}/etc/master.passwd | ||||
fi | fi | ||||
# Rebuild /etc/login.conf.db if necessary. | # Rebuild /etc/login.conf.db if necessary. | ||||
if [ ${BASEDIR}/etc/login.conf -nt ${BASEDIR}/etc/login.conf.db ]; then | if [ ${BASEDIR}/etc/login.conf -nt ${BASEDIR}/etc/login.conf.db ]; then | ||||
cap_mkdb ${BASEDIR}/etc/login.conf | cap_mkdb ${BASEDIR}/etc/login.conf | ||||
fi | fi | ||||
# Rebuild man page databases, if necessary. | |||||
delphij: No ${BASEDIR} prefix? | |||||
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 | # We've finished installing the world and deleting old files | ||||
# which are not shared libraries. | # which are not shared libraries. | ||||
touch $1/worlddone | touch $1/worlddone | ||||
# Do we need to ask the user to portupgrade now? | # Do we need to ask the user to portupgrade now? | ||||
grep -vE '^/boot/' $1/INDEX-NEW | | grep -vE '^/boot/' $1/INDEX-NEW | | ||||
grep -E '^[^|]*/lib/[^|]*\.so\.[0-9]+\|' | | grep -E '^[^|]*/lib/[^|]*\.so\.[0-9]+\|' | | ||||
cut -f 1 -d '|' | | cut -f 1 -d '|' | | ||||
▲ Show 20 Lines • Show All 395 Lines • Show Last 20 Lines |
No ${BASEDIR} prefix?