mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
14 lines
314 B
Bash
Executable file
14 lines
314 B
Bash
Executable file
#!/usr/local/plan9/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
|