From owner-freebsd-bugs Wed Aug 22 9:50:48 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 808CF37B41A for ; Wed, 22 Aug 2001 09:50:21 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f7MGoGr06548; Wed, 22 Aug 2001 09:50:16 -0700 (PDT) (envelope-from gnats) Received: from woozle.rinet.ru (woozle.rinet.ru [195.54.192.68]) by hub.freebsd.org (Postfix) with ESMTP id 0D3E237B40A for ; Wed, 22 Aug 2001 09:44:37 -0700 (PDT) (envelope-from marck@woozle.rinet.ru) Received: (from marck@localhost) by woozle.rinet.ru (8.11.3/8.11.3) id f7MGiZp19480; Wed, 22 Aug 2001 20:44:35 +0400 (MSD) (envelope-from marck) Message-Id: <200108221644.f7MGiZp19480@woozle.rinet.ru> Date: Wed, 22 Aug 2001 20:44:35 +0400 (MSD) From: Dmitry Morozovsky Reply-To: marck@woozle.rinet.ru To: FreeBSD-gnats-submit@freebsd.org Cc: marck@rinet.ru X-Send-Pr-Version: 3.113 Subject: bin/29961: A4 paper size for groff knob for /etc/make.conf Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 29961 >Category: bin >Synopsis: A4 paper size for groff knob for /etc/make.conf >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Aug 22 09:50:16 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Dmitry Morozovsky >Release: FreeBSD 4.3-STABLE i386 / FreeBSD-current >Organization: Cronyx Plus LLC >Environment: Variuos >Description: Outside the US I suppose it is useful to make groff output for A4 paper size. gnu groff already contains the knob needed, so the only thing we need to do is place it into etc/make.conf. Here is (small and obvious) patch. >How-To-Repeat: [ empty ] >Fix: Index: etc/defaults/make.conf =================================================================== RCS file: /home/ncvs/src/etc/defaults/make.conf,v retrieving revision 1.172 diff -u -r1.172 make.conf --- etc/defaults/make.conf 2001/08/16 06:05:17 1.172 +++ etc/defaults/make.conf 2001/08/22 16:40:02 @@ -231,6 +231,11 @@ #USA_RESIDENT= YES # # +# Paper size for groff. Default is Letter. +# +#PAPERSIZE= A4 +# +# # Override "don't install a port that's already installed" behavior. # One might wish to do this for ports debugging or to unconditionally # reinstall a set of suspect/broken ports. Index: gnu/usr.bin/groff/Makefile.inc =================================================================== RCS file: /home/ncvs/src/gnu/usr.bin/groff/Makefile.inc,v retrieving revision 2.5 diff -u -r2.5 Makefile.inc --- gnu/usr.bin/groff/Makefile.inc 2001/04/17 12:36:30 2.5 +++ gnu/usr.bin/groff/Makefile.inc 2001/08/22 16:40:02 @@ -6,7 +6,11 @@ # Define `page' to be letter if your PostScript printer uses 8.5x11 # paper (USA) and define it to be A4, if it uses A4 paper (rest of the # world). +.if defined(PAPERSIZE) +PAGE=${PAPERSIZE} +.else PAGE=letter +.endif # Normally the Postscript driver, grops, produces output that conforms # to version 3.0 of the Adobe Document Structuring Conventions. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message