Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / mk / pkginstall / deinstall-pre
blob3372bf6974ce9ad546d9a2f049fe53c5aa9856a1
1 # $NetBSD: deinstall-pre,v 1.3 2006/03/15 04:52:57 jlam Exp $
3 # Ensure that the VIEW-DEINSTALL action is called for overwrite packages.
4 # This is here to ensure that it's the first DEINSTALL action (before
5 # any DEINSTALL_TEMPLATE DEINSTALL actions).
7 case ${STAGE} in
8 DEINSTALL)
9         if [ "${PKG_INSTALLATION_TYPE}" = "overwrite" ]; then
10                 ${SETENV} PKG_PREFIX="${PKG_PREFIX}" \
11                         $0 ${PKGNAME} VIEW-DEINSTALL
12         fi
13         ;;
14 esac