From aa83d77271f0d2be72067058f78abd1780f3b69e Mon Sep 17 00:00:00 2001 From: wkj Date: Mon, 17 May 2004 03:22:35 +0000 Subject: More troff bits; if you want them elsewhere, feel free to repo copy them. --- src/cmd/index/see.prep | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/cmd/index/see.prep (limited to 'src/cmd/index/see.prep') diff --git a/src/cmd/index/see.prep b/src/cmd/index/see.prep new file mode 100644 index 00000000..33d4c2df --- /dev/null +++ b/src/cmd/index/see.prep @@ -0,0 +1,10 @@ +#!/bin/sh + +awk ' # see.prep +# Input: string "\t" string +# Output: string "\t{see [also]} " string + +BEGIN { FS = "\t" } +$3 ~ /%also/ { print $1 "\t{see also} " $2; next } + { print $1 "\t{see} " $2 } +' $* -- cgit v1.2.3