tmkindex - plan9port - [fork] Plan 9 from user space
(HTM) git clone git://src.adamsgaard.dk/plan9port
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
tmkindex (314B)
---
1 #!/usr/local/plan9/bin/rc
2
3 . 9.rc
4
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