#!/bin/sh
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #
# Mail all the shar files in the current directory to the recipients  on  the #
# command  line.  Note that we assume a shar that generates names of the form #
# foo.sh01, foo.sh02, etc.  There's no way to specify  which  shar  files  to #
# send;  we  just send all of them in the current directory.  This encourages #
# you to give each package its own directory.                                 #
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #
if [ -n "$DBGmailshars" ];then set -x;fi
if [ -n  "$V_mailshars" ];then set -v;fi
for u
do	echo Mail to $u ...
	n=`echo *.sh*|wc -w`
	for f in *.sh*
	do	echo Mail $f to $u
		(echo Subject: $f of $n; echo To: $u;echo ''; cat $f) | Mail -v $u
	done
done
