File:  [CSRG BSD Unix] / 40BSD / cmd / vpr / vgrind.sh
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:53 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD40
BSD 4.0

#
# vgrind
#
set b=/usr/lib
set o=
set t=
set wide = ""
top:
if ($#argv > 1) then
	switch ($1:q)

	case -t:
		set t=-t
		shift
		goto top

	case -o*:
		set o=$1:q
		shift
		goto top
	case -W:
		set wide = "-W"
		shift
		goto top
	endsw
endif
if (-r index) then
	echo > nindex
	foreach i ($*:q)
		echo "/ $i /d" >> nindex
	end
	sed -f nindex index >xindex
	$b/vfontedpr $*:q | \
		/bin/sh -c "vtroff $t $wide -rx1 $o -i -mvgrind 2>> xindex"
	sort -df +0 -2 xindex >index
	rm nindex xindex
else
	$b/vfontedpr $*:q | vtroff $t $wide -i $o -mvgrind
endif

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.