# Clear $svcdir from stale entries, but leave the caches around, as it
# should help speed things up a bit
rm -rf $(ls -d1 "${svcdir}/"* 2>/dev/null | \
if [ -n "${svcdir}" ]
then
grep -ve '\(depcache\|deptree\|envcache\)')
fi
# Update the dependency cache
/sbin/depscan.sh -u