summaryrefslogtreecommitdiff
path: root/games/tetrinetx/DEINSTALL
blob: 498faaf2c8c75dfbd34eedf381c3fde978e1e465 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh
# $NetBSD: DEINSTALL,v 1.1.1.1 2006/02/14 17:03:54 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