BEEP="\007\007\007"
INSBIN=/usr/bin
INSLIB=/usr/lib
INSINC=/usr/include

export BEEP INSLIB INSINC INSBIN

echo "*** Installing Curses/Terminfo User Utilities : "

echo "Installing tput in " $INSBIN  
rm -f $INSBIN/tput ; ln tput $INSBIN/tput
echo "Installing captoinfo in " $INSBIN 
rm -f $INSBIN/captoinfo ; ln captoinfo $INSBIN/captoinfo
echo "Installing tic in " $INSBIN
rm -f $INSBIN/tic ; ln tic $INSBIN/tic
echo "Installing infocmp in " $INSBIN
rm -f $INSBIN/infocmp ; ln infocmp $INSBIN/infocmp
rm -f $INSBIN/getinum ; ln getinum $INSBIN/getinum

echo "*** Installing Compress/Uncompress Utility : "

echo "Installing compress in " $INSBIN 
rm -f $INSBIN/compress ; ln compress $INSBIN/compress
echo "Installing uncompress in " $INSBIN
rm -f $INSBIN/uncompress ; ln compress $INSBIN/uncompress

echo "*** Installing Terminfo Database (CORE Terminals) : "
echo "*** this will take several seconds !!! "
uncompress CORE.TI.Z
( cd /usr/lib;  cpio -iBduc ) < CORE.TI

echo "*** Installing Terminfo Administration Utility : "
echo
(cd /usr/lib/ua ; cpio -iBduc) < tiadmin.cpio

echo "*** Updating User Agent ***"

uaupd -r "Update Terminfo Database" -a TIadmin.ua Administration 

echo $BEEP
echo "*** Installation Complete ***"
echo $BEEP

echo "Hit Return or Enter to continue"
read junk

