diff options
author | tron <tron@pkgsrc.org> | 1998-11-11 00:28:45 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 1998-11-11 00:28:45 +0000 |
commit | cab0e5ec4a8f7625d428d1951b42f8f666fa2744 (patch) | |
tree | a33b6d29fc790176d906afa657e23bf7eed53e0d /print | |
parent | e48f3a52434d2a3a037668ad6f6fcb17225d8456 (diff) | |
download | pkgsrc-cab0e5ec4a8f7625d428d1951b42f8f666fa2744.tar.gz |
Fix paper size handling broken by "papersize" modification.
Diffstat (limited to 'print')
-rw-r--r-- | print/magicfilter/Makefile | 22 |
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]' |