:
PRODUCT='386 RMCOBOL-85RT'
VERSION='      2.00S1'
TODAY=`date`
PWD=`pwd`

LIST="FILTST.COB Makefile NUCTST.COB PACETEST.COB PRNTST.COB SORTTST.COB \
      VDTTST.COB VERIFY.COB config.termcap doverify gold.def rcv1patches \
      recover1 recover2.big recover2.sml recovery rmc85call.h rmp rmpatch.cob \
      runcoboli.a runpatches sub.c subtype.c subtest.cob termcap.rmc \
      typetest.cob"

 cat <<%

                          ALTOS 80386 Computer Systems
                              RM/COBOL-85 Runtime
                                Version 2.00S1






If you have installed Version 2.NS0 of RM/COBOL this procedure will remove it.
%
echo "Do you want to proceed ? (y/n) \c"
read ANS
case $ANS in
      Y|y) echo "\n\tRemoving RM/COBOL Version 2.NS0 Runtime, if present\n"
           rm -f /bin/rmcobol /usr/bin/rmcobol > /dev/null 2>&1 
           rm -f /bin/runcobol /usr/bin/runcobol > /dev/null 2>&1
           rm -f /lib/rmcbl??? > /dev/null 2>&1 
           rm -f /usr/lib/rmcbl??? > /dev/null 2>&1
           rm -rf /usr/rmcobol/runtime > /dev/null 2>&1
           rm -rf /usr/rmcobol/utilities > /dev/null 2>&1
           rm -rf /usr/rmcobol/verify > /dev/null 2>&1 ;;
      N|n) echo "\n\nInstallation Cancelled\n"
           exit 1 ;;
esac

if (test $ANS = "Y" || test $ANS = "y")
then
    echo "\tInstalling RM/COBOL-85 Runtime, Version 2.00S1\n"
    echo "\tPlease do not disturb.\n"

    vers=`uname`
    if [ "$vers" = XENIX386 ]
        then
	    cp Makefile.xen Makefile
        else
	    if [ "$vers" = unix ]
	        then
		    cp Makefile.unx Makefile
	        else
		    echo "\nUnknown Operating System! Installation aborted.\n"
		    exit
	    fi
    fi
    if test ! -d /usr/rmcobol
       then
          mkdir /usr/rmcobol
          chmod 777 /usr/rmcobol
    fi

    chown bin /usr/rmcobol
    chgrp bin /usr/rmcobol

    for i in $LIST
    do
       mv $i /usr/rmcobol
       chown bin /usr/rmcobol/$i
       chgrp bin /usr/rmcobol/$i
    done

    mv runcobol /usr/bin

echo "\t\nRM/COBOL-85 Runtime, Version 2.00S1, installation complete\n"
rm -f install Makefile.* > /dev/null 2>&1
    echo "$PRODUCT|$VERSION|$TODAY|$LOGNAME|$PWD" >> /etc/install.log
fi
