;
;
;  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.19beta"
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 lmail"
copy lmail uucp:c clone

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

echo "copying makecontents"
copy makecontents uucp:c clone

echo "copying 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 as is will"
	echo "be automatically started from sys:wbstartup"
	delete uucp:c/contentsserver
endif

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

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

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

echo "installing metamail"
copy metamail richtext splitmail ezview showpartial savefile to uucp:c clone
if exists uulib:mailcap
	ask "Shall I overwrite uulib:mailcap ?"
	if warn
		copy mailcap uulib: clone
	endif
else
	copy mailcap uulib: clone
endif
if not exists uucp:c/show-startup
	copy show-startup uucp:c clone
	echo "please edit uucp:c/show-startup as described in am.doc"
endif
copy showPBM showJPEG showPGM showXWD showILBM showGIF showDVI showTEXT playUlawSound to uucp:c clone


if not exists libs:ixemul.library
	if exists contrib/ixemul.library
		echo "installing ixemul.library"
		copy contrib/ixemul.library libs: clone
	else
		echo "You have no ixemul.library installed."
		echo "It can be found in the contrib archive"
	endif
endif

echo "Installation succesfull,"

echo  >t:eimer "To: Home of AM <am@senga.ka.sub.org>"
echo >>t:eimer "Cc: postmaster"
echo >>t:eimer "Subject: AM V1.19beta has been installed"
echo >>t:eimer ""
echo >>t:eimer "AM V1.19beta has succesfully been installed here"
echo >>t:eimer ""
if exists uulib:.signature 
	type >>t:eimer uulib:.signature
endif
sendmail <t:eimer -f postmaster

echo "mail sent to Home of AM <am@senga.ka.sub.org>"

lab end
