summaryrefslogtreecommitdiff
path: root/print/xpdf-chinese-traditional
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-chinese-traditional
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-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