.; File: EFN.CMD    Last Edit: 30-SEP-1986 09:50:57 
.;
.; Command file to compile and build EFN (Event flag manipulator)

.enable substitution

.; See if we are running in DCL
.;
.sets curcli <cli>
.if curcli ne "MCR" mcr set /cli=ti:mcr
.;

MAC EFN=EFN
.if <exstat> gt 1 .goto badend
TKB @EFN.TKB
.if <exstat> gt 1 .goto badend
; 
; EFN compiled and built okay
;
.sett good
.goto done

.badend:
;
; EFN compile or build failed
;
.setf good
.goto done

.done:
.;
.; Set back CLI to starting CLI if it was not MCR
.;
.if curcli ne "MCR" set /cli=ti:'curcli'
.;

.iff good .exit 4
.exit 1
