Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 May 1997 14:13:19 +0200 (CEST)
From:      Andreas Klemm <andreas@klemm.gtn.com>
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   docs/3479: PRINTER=ps (make.conf) doesn't change output format to PS
Message-ID:  <199705031213.OAA19655@klemm.gtn.com>
Resent-Message-ID: <199705031230.FAA26941@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199705031213.OAA19655>