=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/vgrind/Attic/vgrind.sh,v retrieving revision 1.2 retrieving revision 1.3 diff -c -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 **** #!/bin/csh -f # ! # $OpenBSD: vgrind.sh,v 1.2 1996/06/26 05:42:31 deraadt Exp $ # $NetBSD: vgrind.sh,v 1.3 1994/11/17 08:28:06 jtc Exp $ # # Copyright (c) 1980, 1993 --- 1,6 ---- #!/bin/csh -f # ! # $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,49 **** # @(#)vgrind.sh 8.1 (Berkeley) 6/6/93 # 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) --- 37,58 ---- # @(#)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="" ! top: if ($#argv > 0) then switch ($1:q) *************** *** 119,128 **** else if ("$head" != "") then $vf $options -h "$head" $files | \ ! sh -c "psroff -rx1 $voptions -i -mvgrind 2>> xindex" else $vf $options $files | \ ! sh -c "psroff -rx1 $voptions -i -mvgrind 2>> xindex" endif endif sort -df +0 -2 xindex >index --- 128,137 ---- else if ("$head" != "") then $vf $options -h "$head" $files | \ ! sh -c "$troff -rx1 $voptions -i -mvgrind 2>> xindex" else $vf $options $files | \ ! sh -c "$troff -rx1 $voptions -i -mvgrind 2>> xindex" endif endif sort -df +0 -2 xindex >index *************** *** 136,144 **** endif else if ("$head" != "") then ! $vf $options -h "$head" $files | psroff -i $voptions -mvgrind else ! $vf $options $files | psroff -i $voptions -mvgrind endif endif endif --- 145,153 ---- endif else if ("$head" != "") then ! $vf $options -h "$head" $files | $troff -i $voptions -mvgrind else ! $vf $options $files | $troff -i $voptions -mvgrind endif endif endif