ncohafmuta-1.4.2/bot/
ncohafmuta-1.4.2/helpfiles/
ncohafmuta-1.4.2/lib/emailver/
ncohafmuta-1.4.2/tzinfo/Atlantic/
ncohafmuta-1.4.2/tzinfo/Brazil/
ncohafmuta-1.4.2/tzinfo/Chile/
ncohafmuta-1.4.2/tzinfo/Indian/
ncohafmuta-1.4.2/tzinfo/Mexico/
ncohafmuta-1.4.2/tzinfo/Mideast/
ncohafmuta-1.4.2/tzinfo/SystemV/
ncohafmuta-1.4.2/utils/
ncohafmuta-1.4.2/utils/code_fragments/new_config/
#!/bin/sh

if [ "$1" = "" ]
then
	echo Usage: ./upgrade <absolute path to your current ncohafmuta> <absolute path to the new ncohafmuta>
	echo e.g.: ./upgrade ~/ncoh123 ~/ncohafmuta-1.3.7
fi

if [ "$2" = "" ]
then
	echo Usage: ./upgrade <absolute path to your current ncohafmuta> <absolute path to the new ncohafmuta>
	echo e.g.: ./upgrade ~/ncoh123 ~/ncohafmuta-1.3.7
fi

echo Copying over your data..

cp -a $2/config $2/config.beforeupgrade
rm -fr $2/config/*
cp $2/server.pid $1/
cp -a $2/config/* $1/config/
cp -a $2/maildir/* $1/users/
cp -a $2/prodir/* $1/prodir/
cp -a $2/maildir/* $1/maildir/
cp -a $2/warnings/* $1/warnings/
cp -a $2/restrict/* $1/restrict/
cp -a $2/newrestrict/* $1/newrestrict/


echo You should now compare your constants.h with the constants.h in the
echo new distribution, and update the new one with your info
echo You might also need to do the same for text.h, if you modified that file
echo
echo You should then run:
echo ./shutdown
echo ./configure
echo make
echo ./restart