From 81e72a90ce855389bb4234fe850a3379e484b657 Mon Sep 17 00:00:00 2001 From: Bill Joy Date: Fri, 19 Oct 1979 00:32:29 -0800 Subject: [PATCH] BSD 3 development Work on file usr/src/cmd/versatec/vgrind.sh Co-Authored-By: David Presotto Synthesized-from: 3bsd --- usr/src/cmd/versatec/vgrind.sh | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 usr/src/cmd/versatec/vgrind.sh diff --git a/usr/src/cmd/versatec/vgrind.sh b/usr/src/cmd/versatec/vgrind.sh new file mode 100755 index 0000000000..d34921a929 --- /dev/null +++ b/usr/src/cmd/versatec/vgrind.sh @@ -0,0 +1,26 @@ +# +# vgrind +# +set b=/usr/lib +set o= +if ($#argv > 1) then + switch ($1:q) + + case -o*: + set o=$1:q + shift + breaksw + endsw +endif +if (-r index) then + echo > nindex + foreach i ($*:q) + echo "/ $i /d" >> nindex + end + sed -f nindex index >xindex + $b/vfontedpr $*:q | vtroff -rx1 $o -i -mvgrind >>& xindex + sort -df +0 -2 xindex >index + rm nindex xindex +else + $b/vfontedpr $*:q | vtroff -i $o -mvgrind +endif -- 2.20.1