summaryrefslogtreecommitdiff
path: root/print/xpdf-korean
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2003-08-30 20:22:49 +0000
committerjlam <jlam@pkgsrc.org>2003-08-30 20:22:49 +0000
commitc5f0321718c1b51acf6c873f20f874a333e41399 (patch)
treed334e2fd95050def4488e848ea48612e6f9103a4 /print/xpdf-korean
parentffb634dba4f8cf98d9303350c69feff299423c86 (diff)
downloadpkgsrc-c5f0321718c1b51acf6c873f20f874a333e41399.tar.gz
Prepare for pkgviews by making sure that passing VIEW-INSTALL or
VIEW-DEINSTALL to the INSTALL/DEINSTALL scripts don't cause errors.
Diffstat (limited to 'print/xpdf-korean')
-rw-r--r--print/xpdf-korean/DEINSTALL24
1 files changed, 5 insertions, 19 deletions
diff --git a/print/xpdf-korean/DEINSTALL b/print/xpdf-korean/DEINSTALL
index 130b9fdfa0a..797821547a4 100644
--- a/print/xpdf-korean/DEINSTALL
+++ b/print/xpdf-korean/DEINSTALL
@@ -1,25 +1,11 @@
-#!/bin/sh
-#
-# $NetBSD: DEINSTALL,v 1.2 2003/03/25 14:06:58 salo Exp $
+# $NetBSD: DEINSTALL,v 1.3 2003/08/30 20:23:05 jlam Exp $
-PKGNAME=$1
-STAGE=$2
-
-XPDFRC=@PKG_SYSCONFDIR@/xpdfrc
+XPDFRC=${PKG_SYSCONFDIR}/xpdfrc
case ${STAGE} in
-DEINSTALL)
- ;;
-
POST-DEINSTALL)
- @SED@ -e "/orean/d" ${XPDFRC} > ${XPDFRC}.tmp
- @SED@ -e "/ksc5601/d" ${XPDFRC}.tmp > ${XPDFRC}
- @RM@ -f ${XPDFRC}.tmp
- ;;
-
-*)
- echo "Unexpected argument: ${STAGE}"
- exit 1
+ ${SED} -e "/orean/d" ${XPDFRC} > ${XPDFRC}.tmp
+ ${SED} -e "/ksc5601/d" ${XPDFRC}.tmp > ${XPDFRC}
+ ${RM} -f ${XPDFRC}.tmp
;;
esac
-exit 0