Date: Sun, 13 Dec 1998 03:06:44 -0700 (MST) From: "Chad R. Larson" <chad@freeway.dcfinc.com> To: george@bio-medical-physics.aberdeen.ac.uk.dcfinc.com (George Cameron) Cc: ports@FreeBSD.ORG Subject: ghostscript unix-lpr script bug Message-ID: <199812131006.DAA01140@freeway.dcfinc.com>
next in thread | raw e-mail | index | archive | help
George, there's a bug in the unix-lpr.sh script as distributed in ghostscript-5.10. It's effect is to cause the script to hand the device name in the -dBitsPerPixel command switch, rather than "1" for devices that have no color depth defined. That causes ghostscript to complain about a string rather than an integer and then exit. Here's a fix: -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= *** unix-lpr.sh 1998/12/13 01:17:52 1.3 --- unix-lpr.sh 1998/12/13 09:18:37 *************** *** 72,78 **** fi bpp="`echo ${device} | sed 's/.*\.\([0-9][0-9]*\)$/\1/'`" ! if test "$bppspec" = "${device}" then bpp=1 else --- 72,78 ---- fi bpp="`echo ${device} | sed 's/.*\.\([0-9][0-9]*\)$/\1/'`" ! if test "$bpp" = "${device}" then bpp=1 else -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -crl -- Chad R. Larson (CRL15) 602-953-1392 Brother, can you paradigm? chad@dcfinc.com chad@larsons.org chad@anasazi.com larson1@home.net DCF, Inc. - 14623 North 49th Place, Scottsdale, Arizona 85254-2207 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199812131006.DAA01140>