where=sdata/.help
case $1 in -f) where=.help; shift;; esac
for i in $*
do
	if test -f $i.d; then echo $i.d already exists; continue; fi
	if test -f $where/$i; then cp $where/$i $i.d
	elif test -f .help/$i; then cp .help/$i $i.d
	else echo cannot find documentation file for $i 
	fi
done
