Warning: Attempt to read property "date" on null in /usr/local/www/websvn.planix.org/blame.php on line 247

Warning: Attempt to read property "msg" on null in /usr/local/www/websvn.planix.org/blame.php on line 247
WebSVN – planix.SVN – Blame – /os/branches/feature-vt/sys/lib/man/lookman/mkindex – Rev 2

Subversion Repositories planix.SVN

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

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