# $NetBSD: DEINSTALL,v 1.2 2003/08/30 18:53:07 jlam Exp $

case ${STAGE} in
POST-DEINSTALL)
	COMPAT_LIBDIR=@COMPAT_LIBDIR@

	${RMDIR} -p ${PKG_PREFIX}/${COMPAT_LIBDIR} 2>/dev/null || ${TRUE}

	# Regenerate the shared library cache.  This should work on either
	# a.out or on ELF with the 1.5 release.
	#
	( @LDCONFIG@ || ${TRUE} ) >/dev/null 2>&1
	;;
esac
