;VideoTracker HD install for Kick 2.0 and higher

.key test/s,full/s
.bra [
.ket ]

echo "*Ec*N                   VideoTracker HD Installation*N"

;version >NIL: 37
;if warn
;echo "You must be using 2.0 Kickstart or higher to install VideoTracker !"
;skip end
;endif

lab nameloop
  echo "Type the name of your Workbench (SYS:) partition (Q to quit) ? " noline
  set >NIL: target ?
  if "$target" EQ "Q"
      skip exit
  endif

  if "`echo $target len 1`" NOT EQ ":"
    set target $target:
  endif

  if "${target}" EQ "SYS:"
    echo "Error:  cannot install to the VideoTracker disk."
    echo "Please give the volume name of your SYS: partition.*N"
    skip back nameloop
  endif

  assign >NIL: exists "${Target}"
  if warn
    echo "Error: partition does not exist.  The partition may not"
    echo "be mounted, or the driver for your card may not have"
    echo "been started.  If this is the case, you will need to"
    echo "copy the driver into the Expansion drawer of this disk,"
    echo "or perform the mount by hand before starting this Install.*N"
    skip back nameloop
  endif

lab partok

assign Target: "${Target}"

  copy VT:VideoTracker Target:VideoTracker all	;copy all effect data
  copy VT:Fonts Target:Fonts all		;and the fonts

if not exists Target:VideoTracker.info		;and the drawer-info
  copy VT:VideoTracker.info Target:		;if necessary
endif
  

if exists VT:S					;VT main disk ?

  copy VT:VideoTracker_Install Target:

if not exists Target:VideoTracker_Install.info ;and the installer for
  copy VT:VideoTracker_Install.info Target:	;data disks !
endif

  if not exists Target:C/View			;the text-viewer
   copy VT:C/View Target:C
  endif

  if not exists Target:C/Req			;the requester-off
   copy VT:C/Req Target:C
  endif

  if not exists Target:S/View80.config		;text-viewer configuration
   copy VT:S/View80.config Target:S
  endif

  copy VT:Libs/iff.library Target:Libs 		;newest version needed !

  if not exists Target:Libs/req.library
   copy VT:Libs/req.library Target:Libs		;req.library for kick 1.3
  endif
  if not exists Target:Libs/powerpacker.library
   copy VT:Libs/powerpacker.library Target:Libs	;for powerpacked modules
  endif

endif

lab exit
  echo "*N Finished"
