plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

mkindex (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