#! /bin/sh

cd ${HOME}/mcm

if [ -d $1 ]; then
	echo "  directory ${HOME}/mcm/$1 already exists"
	echo "  To run setup_mcm, delete it and try again..."
	exit
fi
if [ -f $1 ]; then
	echo "  ${HOME}/mcm/$1 is a file."
	echo "  To run setup_mcm, delete it and try again..."
	exit
fi

mkdir $1

cd $1
ln -s ../mcm-* .
\rm -f mcm-welcome
\rm -f mcm-hello
\rm -f mcm-accts
\rm -r mcm-log
cp ../mcm-hello ../mcm-accts .

echo "  Setup done...  You may now create the files"
echo "  ${HOME}/mcm/$1/mcm-mail and"
echo "  ${HOME}/mcm/$1/mcm-master-mail"
echo "  with lists of E-Mail addresses to recieve copied of the log files"
