#!/bin/sh

# Use same perms/settings as the ebuild.
cachedir="/var/cache/man"
if [ ! -d "${cachedir}" ]; then
	mkdir -p "${cachedir}"
	chown man:man "${cachedir}"
	chmod 0755 "${cachedir}"
fi

exec nice mandb --quiet
