From owner-freebsd-bugs Sat May 3 05:30:05 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id FAA26956 for bugs-outgoing; Sat, 3 May 1997 05:30:05 -0700 (PDT) Received: (from gnats@localhost) by hub.freebsd.org (8.8.5/8.8.5) id FAA26941; Sat, 3 May 1997 05:30:03 -0700 (PDT) Resent-Date: Sat, 3 May 1997 05:30:03 -0700 (PDT) Resent-Message-Id: <199705031230.FAA26941@hub.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@FreeBSD.ORG, andreas@klemm.gtn.com Received: from news1.gtn.com (news1.gtn.com [192.109.159.3]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id FAA26729 for ; Sat, 3 May 1997 05:21:50 -0700 (PDT) Received: (from uucp@localhost) by news1.gtn.com (8.7.2/8.7.2) with UUCP id OAA10367 for FreeBSD-gnats-submit@freebsd.org; Sat, 3 May 1997 14:15:26 +0200 (MET DST) Received: (from root@localhost) by klemm.gtn.com (8.8.5/8.8.2) id OAA19655; Sat, 3 May 1997 14:13:19 +0200 (CEST) Message-Id: <199705031213.OAA19655@klemm.gtn.com> Date: Sat, 3 May 1997 14:13:19 +0200 (CEST) From: Andreas Klemm Reply-To: andreas@klemm.gtn.com To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: docs/3479: PRINTER=ps (make.conf) doesn't change output format to PS Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >Number: 3479 >Category: docs >Synopsis: PRINTER=ps (make.conf) doesn't change output format to PS >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat May 3 05:30:02 PDT 1997 >Last-Modified: >Originator: Andreas Klemm >Organization: >Release: FreeBSD 3.0-CURRENT i386 >Environment: FreeBSD-current as of today >Description: Enabling PRINTER=ps in /etc/make.conf doesn't result in producing system documentation in postscript format. /usr/share/doc/papers contains additional papers in ascii format compressed with gzip. -r--r--r-- 1 bin bin 24291 3 Mai 13:22 beyond43.ascii.gz [snip] The PRINTER environment variable in /etc/make.conf is intended to be the central place, to change the output format from ascii for example to ps. /etc/make.conf: # Default format for system documentation, depends on your printer. # Set this to "ascii" for simple printers or screen # #PRINTER= ps >How-To-Repeat: [ set PRINTER=ps in /etc/make.conf ] # cd /usr/src/doc/papers # make clean all install # cd /usr/share/doc/papers # ls -l [snip] -r--r--r-- 1 bin bin 24291 3 Mai 13:22 beyond43.ascii.gz ^^^^^ not ps ! [snip] >Fix: use the make variable PRINTERDEVICE= ps in /etc/make.conf, instead PRINTER since /usr/share/mk/bsd.doc.mk works the following way: # from: @(#)bsd.doc.mk 5.3 (Berkeley) 1/2/91 # $Id: bsd.doc.mk,v 1.36 1997/04/04 01:25:32 mpp Exp $ PRINTERDEVICE?= ascii BIB?= bib EQN?= eqn -T${PRINTERDEVICE} GREMLIN?= grn GRIND?= vgrind -f INDXBIB?= indxbib PIC?= pic REFER?= refer .if ${PRINTERDEVICE} == "ascii" ROFF?= groff -mtty-char ${TRFLAGS} ${MACROS} -o${PAGES} .else ROFF?= groff ${TRFLAGS} ${MACROS} -o${PAGES} .endif Commitlogs for reference: ---------------------------- revision 1.28 date: 1996/12/22 16:16:13; author: wosch; state: Exp; lines: +3 -3 Do not use variable PRINTERDEVICE as printer name. ---------------------------- revision 1.27 date: 1996/12/19 22:40:43; author: mpp; state: Exp; lines: +12 -12 Change bsd.doc.mk to use the variable PRINTERDEVICE instead of PRINTER for defining the default output device when formatting documents for installation. This prevents problems if the user has defined PRINTER for use by lpr. Closes PR# 1437. I think it was only forgotten to consequently change the name in /etc/make.conf. If nobody has something against it, I will change this ... >Audit-Trail: >Unformatted: