=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/vgrind/Attic/vgrind.sh,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- src/usr.bin/vgrind/Attic/vgrind.sh 1996/06/26 05:42:31 1.2 +++ src/usr.bin/vgrind/Attic/vgrind.sh 1996/10/03 19:32:20 1.3 @@ -1,6 +1,6 @@ #!/bin/csh -f # -# $OpenBSD: vgrind.sh,v 1.2 1996/06/26 05:42:31 deraadt Exp $ +# $OpenBSD: vgrind.sh,v 1.3 1996/10/03 19:32:20 tholo Exp $ # $NetBSD: vgrind.sh,v 1.3 1994/11/17 08:28:06 jtc Exp $ # # Copyright (c) 1980, 1993 @@ -37,13 +37,22 @@ # @(#)vgrind.sh 8.1 (Berkeley) 6/6/93 # +# Allow troff to be overridden +if ( $?TROFF ) then + set troff = "$TROFF" +else + set troff = "troff" +endif + +set vf=/usr/libexec/vfontedpr +set tm=/usr/share/tmac + set voptions= set options= set files= set f='' set head="" -set vf=/usr/libexec/vfontedpr -set tm=/usr/share/tmac + top: if ($#argv > 0) then switch ($1:q) @@ -119,10 +128,10 @@ else if ("$head" != "") then $vf $options -h "$head" $files | \ - sh -c "psroff -rx1 $voptions -i -mvgrind 2>> xindex" + sh -c "$troff -rx1 $voptions -i -mvgrind 2>> xindex" else $vf $options $files | \ - sh -c "psroff -rx1 $voptions -i -mvgrind 2>> xindex" + sh -c "$troff -rx1 $voptions -i -mvgrind 2>> xindex" endif endif sort -df +0 -2 xindex >index @@ -136,9 +145,9 @@ endif else if ("$head" != "") then - $vf $options -h "$head" $files | psroff -i $voptions -mvgrind + $vf $options -h "$head" $files | $troff -i $voptions -mvgrind else - $vf $options $files | psroff -i $voptions -mvgrind + $vf $options $files | $troff -i $voptions -mvgrind endif endif endif