summaryrefslogtreecommitdiff
path: root/games/tetrinetx/DEINSTALL
diff options
context:
space:
mode:
Diffstat (limited to 'games/tetrinetx/DEINSTALL')
-rw-r--r--games/tetrinetx/DEINSTALL27
1 files changed, 27 insertions, 0 deletions
diff --git a/games/tetrinetx/DEINSTALL b/games/tetrinetx/DEINSTALL
new file mode 100644
index 00000000000..498faaf2c8c
--- /dev/null
+++ b/games/tetrinetx/DEINSTALL
@@ -0,0 +1,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