a=1
YN a
Do you want to read
~creadme.1st now?

END YN
IF a == 1
	SYSTEM
	$install:/bin/more.exe $install:/readme.1st
	END SYSTEM
END IF

LIST rcs.lst

z=0
c=0
a=0

CPUTYPE x
IF x >= 386
	a=1
END IF

r = m = n = 1

OPTIONS x
r MKS RCS
n MKS Make
m Online Manual Pages
END OPTIONS

IF !r && !m && !n
	ALERT
You have not selected any options.
~cInstallation discontinued.
 
	END ALERT
	EXIT
END IF

ADD SET a TO z

IF r
	ADD SET r TO z

	IF a
		b=1
		YN b
Do you want to install the DOS-extended version of the
diff command in the $root/bin32 directory?
 
		END YN

		IF b == 1 
			ADD SET s to z 
			ADDTOPATH $r/bin32
		END IF
	END IF
END IF

IF n
	ADD SET n TO z

	IF a
		c=1
		YN c
Do you want to install the DOS-extended version of
MKS Make in the $root/bin32 directory?
 
		END YN

		IF c == 1 
			ADD SET p to z

			IF !b 
				ADDTOPATH $r/bin32
			END IF 
		END IF
	END IF
END IF

IF m
	ADD SET m TO z
	ADD SET o TO z
END IF

EXIST $root/bin/makes.exe a
EXIST $root/bin/makel.exe b
EXIST $root/bin/makesl.exe c
d = a | b | c 
IF n && d
	a=1
	YN a
You have a previous version of MKS Make
installed. Do you want to remove the
previous version?

Specifically, you will remove whichever
of the following commands are present:

  makes.exe, makel.exe and makesl.exe

	END YN
	IF a
		REMOVE $root/bin/makes.exe
		REMOVE $root/bin/makel.exe
		REMOVE $root/bin/makesl.exe
	END IF
END IF

a=1
YN a
Ready to install ~!MKS RCS~! to
~c"$root"
~cDo you want to proceed?

END YN
IF !a
        EXIT
END IF

COPY SET z

EXIST $boot/autoexec.bat a
IF a
	a = 1
	YN a
Would you like a backup copy made of

        $boot/autoexec.bat
to
        $boot/autoexec.mks

	END YN
	IF a
		REMOVE $boot/autoexec.mks
		COPY $boot/autoexec.bat=$boot/autoexec.mks
	END IF
END IF
