summaryrefslogtreecommitdiff
path: root/games/tetrinetx/DEINSTALL
diff options
context:
space:
mode:
Diffstat (limited to 'games/tetrinetx/DEINSTALL')
-rw-r--r--games/tetrinetx/DEINSTALL39
1 files changed, 13 insertions, 26 deletions
diff --git a/games/tetrinetx/DEINSTALL b/games/tetrinetx/DEINSTALL
index 498faaf2c8c..e21e71ecd38 100644
--- a/games/tetrinetx/DEINSTALL
+++ b/games/tetrinetx/DEINSTALL
@@ -1,27 +1,14 @@
-#!/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
- ;;
+# $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
-exit 0