summaryrefslogtreecommitdiff
path: root/print/xpdf-chinese-traditional
diff options
context:
space:
mode:
authorjlam <jlam>2003-08-30 20:22:49 +0000
committerjlam <jlam>2003-08-30 20:22:49 +0000
commit20b85a151292d1c2495d2fba787ca26293c7a9e2 (patch)
treed334e2fd95050def4488e848ea48612e6f9103a4 /print/xpdf-chinese-traditional
parent1c9f4e0bdcaa144f30d977697cd5fdfe70963ce1 (diff)
downloadpkgsrc-20b85a151292d1c2495d2fba787ca26293c7a9e2.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-chinese-traditional')
-rw-r--r--print/xpdf-chinese-traditional/DEINSTALL24
1 files changed, 5 insertions, 19 deletions
diff --git a/print/xpdf-chinese-traditional/DEINSTALL b/print/xpdf-chinese-traditional/DEINSTALL
index a8d5f19c518..08605a32a52 100644
--- a/print/xpdf-chinese-traditional/DEINSTALL
+++ b/print/xpdf-chinese-traditional/DEINSTALL
@@ -1,25 +1,11 @@
-#!/bin/sh
-#
-# $NetBSD: DEINSTALL,v 1.2 2003/03/25 14:06:50 salo Exp $
+# $NetBSD: DEINSTALL,v 1.3 2003/08/30 20:23:04 jlam Exp $
-PKGNAME=$1
-STAGE=$2
-
-XPDFRC=@PKG_SYSCONFDIR@/xpdfrc
+XPDFRC=${PKG_SYSCONFDIR}/xpdfrc
case ${STAGE} in
-DEINSTALL)
- ;;
-
POST-DEINSTALL)
- @SED@ -e "/raditional/d" ${XPDFRC} > ${XPDFRC}.tmp
- @SED@ -e "/big5/d" -e "/Ar[ph][ph]ic fonts, you may/d" ${XPDFRC}.tmp > ${XPDFRC}
- @RM@ -f ${XPDFRC}.tmp
- ;;
-
-*)
- echo "Unexpected argument: ${STAGE}"
- exit 1
+ ${SED} -e "/raditional/d" ${XPDFRC} > ${XPDFRC}.tmp
+ ${SED} -e "/big5/d" -e "/Ar[ph][ph]ic fonts, you may/d" ${XPDFRC}.tmp > ${XPDFRC}
+ ${RM} -f ${XPDFRC}.tmp
;;
esac
-exit 0