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