;*************************************
;Automatic X-DVE libraries installator
;$VER: 1.02 (9/10/1996)
;*************************************

;Default settings
Set xd "X-DVE:libs/x-dve.library000"
Set xf "X-DVE:libs/xfa.library000"
Set cf `X-DVE:Utils/CpuFpu`

;********************* 68060 ***************************

If $cf EQ "64"
	set xd "x-dve:libs/x-dve.library040"
	set xf "x-dve:libs/xfa.library040"
	Skip EndScript
endif

If $cf EQ "60"
	set xd "x-dve:libs/x-dve.library020"
	set xf "x-dve:libs/xfa.library020"
	Skip EndScript
endif

;********************* 68040 ***************************

If $cf EQ "44"
	set xd "x-dve:libs/x-dve.library040"
	set xf "x-dve:libs/xfa.library040"
	Skip EndScript
endif

If $cf EQ "40"
	set xd "x-dve:libs/x-dve.library020"
	set xf "x-dve:libs/xfa.library020"
	Skip EndScript
endif

;********************* 68030 ***************************

If $cf EQ "34"
	set xd "x-dve:libs/x-dve.library030"
	set xf "x-dve:libs/xfa.library030"
	Skip EndScript
endif

If $cf EQ "32"
	set xd "x-dve:libs/x-dve.library030"
	set xf "x-dve:libs/xfa.library030"
	Skip EndScript
endif

If $cf EQ "31"
	set xd "x-dve:libs/x-dve.library030"
	set xf "x-dve:libs/xfa.library030"
	Skip EndScript
endif

If $cf EQ "30"
	set xd "x-dve:libs/x-dve.library020"
	set xf "x-dve:libs/xfa.library020"
	Skip EndScript
endif

;********************* 68020 ***************************

If $cf EQ "24"
	set xd "x-dve:libs/x-dve.library030"
	set xf "x-dve:libs/xfa.library020"
	Skip EndScript
endif

If $cf EQ "22"
	set xd "x-dve:libs/x-dve.library030"
	set xf "x-dve:libs/xfa.library020"
	Skip EndScript
endif

If $cf EQ "21"
	set xd "x-dve:libs/x-dve.library030"
	set xf "x-dve:libs/xfa.library020"
	Skip EndScript
endif

If $cf EQ "20"
	set xd "x-dve:libs/x-dve.library020"
	set xf "x-dve:libs/xfa.library020"
	Skip EndScript
endif


;********************* 68000/68010 ***************************

Lab EndScript
Echo "Installing....."
Echo $xd
Echo $xf
Copy $xd libs:x-dve.library CLONE
Copy $xf libs:xfa.library CLONE
Avail >NIL: Flush
Echo "Ok."
