pkgsrc-wip/tetrinetx/DEINSTALL
Roland Illig 685d96be66 Cleaned up DEINSTALL (the [ -e ... ] test was unnecessary and unportable).
Replaced the variable PREFIX with LOCALBASE in Makefile. Made the variables
LOCALBASE and SHAREDIR available to the C program. Adjusted the hard coded
paths in the patch for src/config.h.
2004-01-22 19:41:43 +00:00

27 lines
420 B
Bash
Executable file

#!/bin/sh
# $NetBSD: DEINSTALL,v 1.2 2004/01/22 19:41:43 rillig Exp $
PKGNAME=$1
STAGE=$2
LIST="${PKG_PREFIX}/share/tetrinetx/game.log"
case ${STAGE} in
DEINSTALL)
for to_trash in ${LIST}; do
if [ -d "${to_trash}" ]; then
rm -rf ${to_trash}/*
elif [ -f "${to_trash}" ]; then
rm ${to_trash}
fi
done
;;
POST-DEINSTALL)
;;
*)
echo "Unexpected argument: ${STAGE}"
exit 1
;;
esac
exit 0