# Copyright (c) 1980 The Regents of the University of California.
# Redistribution and use in source and binary forms are permitted
# provided that the above copyright notice and this paragraph are
# duplicated in all such forms and that any documentation,
# advertising materials, and other materials related to such
# distribution and use acknowledge that the software was developed
# by the University of California, Berkeley. The name of the
# University may not be used to endorse or promote products derived
# from this software without specific prior written permission.
# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
# @(#)vgrind.sh 5.5 (Berkeley) %G%
set vf
=/usr
/libexec
/vfontedpr
set tm
=/usr
/share
/lib
/tmac
set options
= "$options $1:q"
set voptions
= "$voptions -t"
set voptions
="$voptions $1:q"
set voptions
= "$voptions -W"
echo "vgrind: $1:q option must have argument"
set options
= ($options $1:q
$2)
echo "vgrind: $1:q option must have argument"
set options
= "$options $1:q"
set files
= "$files $1:q"
# make up a sed delete command for filenames
# being careful about slashes.
echo "? $i ?d" |
sed -e "s:/:\\/:g" -e "s:?:/:g" >> nindex
sed -f nindex index
>xindex
$vf $options -h "$head" $files |
cat $tm/tmac.vgrind
-
$vf $options $files |
cat $tm/tmac.vgrind
-
$vf $options -h "$head" $files | \
sh
-c "vtroff -rx1 $voptions -i -mvgrind 2>> xindex"
sh
-c "vtroff -rx1 $voptions -i -mvgrind 2>> xindex"
sort -df +0 -2 xindex
>index
$vf $options -h "$head" $files |
cat $tm/tmac.vgrind
-
$vf $options $files |
cat $tm/tmac.vgrind
-
$vf $options -h "$head" $files | vtroff
-i $voptions -mvgrind
$vf $options $files | vtroff
-i $voptions -mvgrind