;+
;		TEM.CMD
;
;	Assemble and taskbuild TEM, the Terminal EMulator.
;-
	.ENABLE SUBSTITUTION
	.SETS PARM ""
	.SETT TRUE
	.IFDF <PRIVIL> .SETS PARM "[TRUE] "
	.ASK 'PARM'M40 Is this TEM to run on at least M4.0 or M+2.0
	.SETS PREFIX ""
	.IFT M40	.GOTO MACIT
	.OPEN TEMPRE.MAC
	.DATA RSXVER = 32
	.CLOSE
	.SETS PREFIX "TEMPRE,"
	.SETS CLIPRE ""
.MACIT:	.IFNDF <CLI>		.GOTO MCR
	.IF <CLI> = "MCR"	.GOTO MCR
	.IF <CLI> = "DCL"	.GOTO DCL
	.SETS CLIPRE "MCR "
.MCR:	'CLIPRE'MAC TEM,TEM/-SP='PREFIX'TEM
	'CLIPRE'TKB @TEMBLD
	.IFT M40	'CLIPRE'PIP TEMPRE.MAC;*/DE
	.GOTO EXIT
.DCL:	MACRO 'PREFIX'TEM/LIST
	LINK @TEMBLD
	.IFT M40	DELETE TEMPRE.MAC;*
.EXIT:	.;
