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