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
commit2920a32c71bae3a6a02b2c5c0576d9a60b9a0594 (patch)
treed334e2fd95050def4488e848ea48612e6f9103a4 /print/xpdf-korean
parent2ebf5a7dc8b33d5f29466890b65a69e886f19281 (diff)
downloadpkgsrc-2920a32c71bae3a6a02b2c5c0576d9a60b9a0594.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