pkgsrc/games/tetrinetx/DEINSTALL
jlam 3ba41e8b0c Drop use of INSTALL_SRC and DEINSTALL_SRC and instead set the proper
variables so that the default INSTALL/DEINSTALL scripts from the
pkginstall framework do the right thing.  Where possible, move some
post-install directions for package setup into MESSAGE files so that
they may be re-inspected by querying the installed package using
"pkg_info -D ...".
2006-07-05 06:53:12 +00:00

14 lines
302 B
Text

# $NetBSD: DEINSTALL,v 1.2 2006/07/05 06:53:13 jlam Exp $
case "${STAGE}" in
DEINSTALL)
LIST="${PKG_PREFIX}/share/tetrinetx/game.log"
for to_trash in ${LIST}; do
if ${TEST} -d "$to_trash"; then
${RM} -fr $to_trash/*
elif ${TEST} -f "$to_trash"; then
${RM} -f $to_trash
fi
done
;;
esac