Blob


1 #!/usr/local/plan9/bin/rc
3 . 9.rc
5 # creates the index used by lookman
6 >lookman.index
7 for(i in $PLAN9/man/man[0-9]*/[a-z0-9:]*.[0-9]*){
8 deroff -w_ < $i |
9 tr 'A-Z' 'a-z' |
10 sort -u |
11 comm -23 - junkwords |
12 sed 's@$@ '$i'@' >>lookman.index # stick file name on end of line
13 }
14 sort -o lookman.index lookman.index