; little dirty install script for xadmaster system

; $VER: Install 1.7 (26.06.2002) by SDI

(copylib
  (help @copylib-help)
  (prompt "Copying xadmaster.library")
  (source "Libs/xadmaster.library")
  (dest "LIBS:")
  (confirm)
)

(delete (cat "LIBS:xad/("
        "NiteTimeGamesDos|Trackmo-DOS|SensiDisk|GameDemoFS|SOS|Cpio|idPAK)")
	(prompt "Deleting old clients that are no longer required")
	(help "These clients are either included in xadmaster.library or in another client\n\n"
	@delete-help)
	(optional "force")
)

(copyfiles
  (help @copyfiles-help)
  (prompt "Copying xadmaster.library clients")
  (source "Libs/xad")
  (dest "LIBS:xad")
  (all)
  (confirm)
)

(copyfiles
  (help @copyfiles-help)
  (prompt "Copying shell tools")
  (source "C")
  (dest "C:")
  (all)
  (confirm)
)

(set #dir
  (askdir
    (prompt "Where should the docs be installed?")
    (help @askdir-help)
    (default @default-dest)
  )
)

(set #catalog
  (askchoice
    (prompt "Select the language")
    (help @askoptions-help)
    (choices "deutsch" "english" "franais" "polski")
    (default 1)
  )
)

(if (= #catalog 0) (
  (copyfiles
    (help @copyfiles-help)
    (prompt "Copying xadmaster guide file and shell docs")
    (source "Languages/deutsch")
    (dest #dir)
    (infos)
    (all)
    (confirm)
  )
))

(if (= #catalog 1) (
  (copyfiles
    (help @copyfiles-help)
    (prompt "Copying xadmaster guide file")
    (source "xadmaster.guide")
    (dest #dir)
    (infos)
    (all)
    (confirm)
  )

  (copyfiles
    (help @copyfiles-help)
    (prompt "Copying shell tool docs")
    (source "Docs")
    (dest #dir)
    (infos)
    (all)
    (confirm)
  )
))

(if (= #catalog 2) (
  (copyfiles
    (help @copyfiles-help)
    (prompt "Copying xadmaster guide file and shell docs")
    (source "Languages/franais")
    (dest #dir)
    (infos)
    (all)
    (confirm)
  )
))

(if (= #catalog 3) (
  (copyfiles
    (help @copyfiles-help)
    (prompt "Copying xadmaster guide file and shell docs")
    (source "Languages/polski")
    (dest #dir)
    (infos)
    (all)
    (confirm)
  )
))

