;
;
;  AM --- AmigaMail
;  (C) 1991 by Christian Riede
;
;  AM is distributed in the hope that it will be useful, but WITHOUT ANY
;  WARRANTY.  No author or distributor accepts responsibility to anyone
;  for the consequences of using it or for whether it serves any
;  particular purpose or works at all, unless he says so in writing.
;  Refer to the GNU General Public License, Version 1, for full details.
;  
;  Everyone is granted permission to copy, modify and redistribute AM,
;  but only under the conditions described in the GNU General Public
;  License, Version 1.  A copy of this license is supposed to have been 
;  given to you along with AM so you can know your rights and responsi-
;  bilities.  It should be in a file named COPYING.  Among other things,
;  the copyright notice and this notice must be preserved on all copies.
;
;  
;
;


echo "Installation procedure of AM (AmigaMail) V1.14beta"
echo "You must have AmigaUUCP or AmigaUUCP+ installed as"
echo "described in the documentation to that software"

echo

ask "proceed? (Y,N)"

if not warn 
	skip end
endif

if not exists uulib:am.config
	copy am.config uulib: clone
endif

echo "copying new lmail"
copy lmail uucp:c clone

echo "copying new sendm"
copy sendm uucp:c clone
protect uucp:c/sendm s add

echo "copying new makecontents"
copy makecontents uucp:c clone

echo "copying new amkill"
copy amkill uucp:c clone

if exists uucp:c/contentsserver
	echo "Attention, contentsserver is no longer in UUCP:C!!!"
	echo "Please remove it from s:startup-sequence"
	delete uucp:c/contentsserver
endif

echo "copying contentsserver"
copy contentsserver contentsserver.info to sys:wbstartup clone

echo "copying am"
copy AM AM.info to uucp:c clone

if exists uucp:c/newmail
	echo "Attention, newmail is no longer in UUCP:C!!!"
	echo "Please move it's icon from this directory to sys:wbstartup"
	delete uucp:c/newmail
endif

echo "installing metamail"
copy metamail uucp:c clone
copy hamgif uucp:c clone
copy mailcap uulib:

if not exists libs:ixemul.library
	echo "installing ixemul.library"
	copy ixemul.library libs: clone
endif

; installation successfull, send mail to am@senga.ka.sub.org about it
echo  >t:eimer "To: am@senga.ka.sub.org (Home of AM)"
echo >>t:eimer "Cc: postmaster"
echo >>t:eimer "Subject: AM V1.14beta has been installed"
echo >>t:eimer ""
echo >>t:eimer "AM V1.14beta has succesfully been installed here"
echo >>t:eimer ""
if exists uulib:.signature 
	type >>t:eimer uulib:.signature
endif
sendmail <t:eimer -f postmaster

lab end
