More troff bits; if you want them elsewhere, feel free to repo copy them.

This commit is contained in:
wkj 2004-05-17 03:22:35 +00:00
parent a7eb134e87
commit aa83d77271
22 changed files with 670 additions and 1 deletions

31
bin/tref Executable file
View file

@ -0,0 +1,31 @@
awk '
BEGIN{
print ".nr Rp 1" # supress ... Rx lines
first=1
}
#these come first
$1=="..." && $2=="Rx"{
ref[$4] = $3
next
}
first {
printf(".lf %d %s\n", 1, inputfile)
lineoffset=NR-1
first=0
}
$1==".Rf"{
if($2 in ref)
$2=ref[$2]
else
printf("tref: %s:%d: no ref for %s\n",
inputfile, NR-lineoffset, $2) >"/dev/stderr"
}
{
print
}
' $*