summaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authortron <tron>1998-11-11 00:28:45 +0000
committertron <tron>1998-11-11 00:28:45 +0000
commit68388a916c0fe21806cd13fb5fd927e1f8002c0d (patch)
treea33b6d29fc790176d906afa657e23bf7eed53e0d /print
parent03fc20bfcef9ed2a5f6b430bc7cd5bd9cd03b898 (diff)
downloadpkgsrc-68388a916c0fe21806cd13fb5fd927e1f8002c0d.tar.gz
Fix paper size handling broken by "papersize" modification.
Diffstat (limited to 'print')
-rw-r--r--print/magicfilter/Makefile22
1 files changed, 12 insertions, 10 deletions
diff --git a/print/magicfilter/Makefile b/print/magicfilter/Makefile
index 8574c0240c2..d6e297cb4c5 100644
--- a/print/magicfilter/Makefile
+++ b/print/magicfilter/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.9 1998/11/10 18:34:28 tron Exp $
+# $NetBSD: Makefile,v 1.10 1998/11/11 00:28:45 tron Exp $
DISTNAME= magicfilter-1.2
CATEGORIES= print
@@ -25,16 +25,18 @@ FILTER_DIR= libexec/magicfilter
post-install:
@${CP} ${PKGDIR}/PLIST ${PLIST_SRC}
@${MKDIR} ${PREFIX}/${FILTER_DIR}
- @(cd ${WRKSRC}/filters; \
- for FILTER in *-filter; do \
- TARGET=${PREFIX}/${FILTER_DIR}/$$FILTER; \
- ${ECHO} "Installing $$FILTER as $$TARGET"; \
- ${SED} 's/-sOutputFile=-/-sOutputFile=- -sPAPERSIZE=${PAPERSIZE}/' \
- <$$FILTER >${PREFIX}/${FILTER_DIR}/$$FILTER; \
- chown ${BINOWN}:${BINGRP} $$TARGET; \
- chmod ${BINMODE} $$TARGET; \
- ${ECHO} ${FILTER_DIR}/$$FILTER >>${PLIST_SRC}; \
+ @(cd ${WRKSRC}/filters; \
+ for FILTER in *-filter; do \
+ TARGET=${PREFIX}/${FILTER_DIR}/$$FILTER; \
+ ${ECHO} "Installing $$FILTER as $$TARGET"; \
+ ${SED} 's/-sOutputFile=-/-sOutputFile=- -sPAPERSIZE=${PSIZE}/' \
+ <$$FILTER >${PREFIX}/${FILTER_DIR}/$$FILTER; \
+ chown ${BINOWN}:${BINGRP} $$TARGET; \
+ chmod ${BINMODE} $$TARGET; \
+ ${ECHO} ${FILTER_DIR}/$$FILTER >>${PLIST_SRC}; \
done)
@${ECHO} "@dirrm ${FILTER_DIR}" >>${PLIST_SRC}
.include "../../mk/bsd.pkg.mk"
+
+PSIZE!= echo ${PAPERSIZE} | tr '[A-Z]' '[a-z]'