Plan 9 from User Space's /usr/local/plan9/src/cmd/index/make.index

#!/bin/sh

#check.data $*

doclean $* >foo1
deroman foo1 >foo2
range.prep foo2 >foo3
rotate foo3 >foo4
range.sort foo4 >foo5
range.collapse foo5 >foo6
reroman foo6 >foo7
num.collapse foo7 >foo8
gen.key foo8 >foo9
see.prep see.terms | gen.key >foo.see
final.sort foo9 foo.see >foo.regular

hierarchy foo.regular >foo.hier

format foo.hier >foo.all

cat foo.all

#cleanup

Space Glenda

Copyright © 2005 Lucent Technologies, Russ Cox, MIT.
See license for details.