	.ENABLE GLOBAL
	.ENABLE SUBSTITUTION
	;
	;	Building UND -- Undelete Deleted Files Utility
	;
	.SETF SRCDEV
	.IFNDF $TKB .SETS $TKB "TKB"
	.IFDF $SRC .GOTO SRCOK
	.SETS $SRC COMMAN
	.PARSE $SRC " " $SRC DUMMY
	.PARSE $SRC "/" $SRC DUMMY
	.PARSE $SRC "." $SRC EXT
	.IF EXT EQ "" .SETS EXT "CMD"
	.TESTFILE '$SRC'.'EXT'
	.PARSE <FILSPC> ":" $SRC TEMP
	.TESTFILE SY:
	.PARSE <FILSPC> ":" SYDEV TEMP
	.IF $SRC EQ SYDEV .SETT SRCDEV
	.SETS $SRC $SRC+":"
.SRCOK:	.SETF Q
	.IFDF $LST .AND .IFDF $MP .GOTO CHKMP
	.ASK Q Generate listings
	.IFT Q .SETS $LST ""
	.IFF Q .SETS $LST "NL:"
	.SETF Q
	.ASK Q Generate maps
	.IFT Q .SETS $MP ""
	.IFF Q .SETS $MP "NL:"
.CHKMP:
.UND1:
	SLP @'$SRC'UNDEL.COR
	MAC UND,'$LST'UND/-SP=UNDEL
	PIP UNDEL.MAC;*/DE
	.OPEN UNDTKB.CMD
	.DATA UND/PR:0/CP,'$MP'UND/-SP=UND
	.DATA /
	.DATA UIC=[1,1]
	.DATA PRI=100
	.DATA TASK=...UND
	.DATA //
	.CLOSE
	'$TKB' @UNDTKB
	PIP UND.OBJ;*/DE,UNDTKB.CMD;*/DE
.UNDEX:	;
