#!/bin/sh
#	BSDI	makewhatis,v 2.1 1995/02/03 16:07:46 polk Exp
out=/usr/share/man/whatis.db
dirs="/usr/share/man /usr/X11/man /usr/contrib/man /usr/local/man"
[ $# != 0 ] && dirs="$@"
find $dirs -type f -name '*.0*' -print | \
	/usr/share/man/makewhatis.perl | \
	sort -u > $out
exit 0
