home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso
/
unix
/
volume25
/
smail-deliver.pch
/
X.install
< prev
next >
Wrap
Text File
|
1992-01-11
|
1KB
|
50 lines
:
# X.install
#
# Shell script to install smail in a Xenix System V system.
#
# Note that this script renames the standard Xenix rmail and execmail
# programs to rmail.x and execmail.x respectively. If those `.x' files
# already exist, then no renaming takes place, so you can run this script
# more than once without losing those renamed programs.
#
# BTW, be sure to test everything thoroughly; a broken mail system is
# sure to upset any users on your system.
COPY="copy -m"
SMAIL="/usr/bin/smail"
RMAIL="/usr/bin/rmail"
EXECM="/usr/lib/mail/execmail"
for f in smail execm
do
if [ ! -x $f ]; then
echo "You need to compile $f first."
exit 1
fi
done
echo "Installing current smail -- you have 5 seconds to abort."
sleep 5
if [ ! -f $RMAIL.x ]; then
mv $RMAIL $RMAIL.x
fi
rm -f $RMAIL
if [ ! -f $EXECM.x ]; then
mv $EXECM $EXECM.x
fi
rm -f $EXECM
$COPY execm $EXECM
chown bin $EXECM
chgrp bin $EXECM
chmod 755 $EXECM
rm -f $SMAIL $RMAIL
$COPY smail $SMAIL
chown bin $SMAIL
chgrp bin $SMAIL
chmod 755 $SMAIL
ln $SMAIL $RMAIL