; Installer-Script of TicTacAMIGA v1.5a and better
; The TTA package (the executable, the guides, the install-script and 
; the catalog) is copyright 1993-1994 by Jens Tröger

; $VER TTA v1.5a (16.10.1994)

(COMPLETE 0)

(IF (= @language "deutsch")
   (
      (SET no_v37 (CAT "Es wird mindestens OS2 (v37) oder besser benötigt"))
      (SET msg_0 (CAT "\nTicTacAMIGA Installer script.\n\n"
                      "Hiermit können Sie TTA auf Ihrem AMIGA installieren\n\n"
                      "Hinweis: lesen Sie bitte das Guide, bevor Sie TTA starten !"
                      "\n\nDas TTA-Packet ist © 1993-1994 by Jens Tröger\n"
                      "Alle Rechte vorbehalten."
                      "\n\nNotiz: das Guide wird nicht installiert !"))
      (SET msg_1 (CAT "Zeilverzeichnis auswählen..."))
      (SET done (CAT "OK, das wär`s - Installation abgeschlossen"
                     "\n\nViel Spaß mit TTA !"))
   )
   (
      (SET no_v37 (CAT "You need OS2 (v37) or better to run"))
      (SET msg_0 (CAT "\nTTA Installer script.\n\n"
                      "This will install TTA on your AMIGA\n\n"
                      "Indication: read the guide before you run TTA !"
                      "\n\nThe TTA-package is © 1993-1994 by Jens Tröger\n"
                      "All rights reserved."
                      "\n\nNote: the guide won`t be installed !"))
      (SET msg_1 (CAT "Select destination drawer..."))
      (SET done (CAT "OK, that`s all - installation complete"
                     "\n\nHave fun with TTA !"))
   )
)

(IF (< (/ (GETVERSION) 65536) 37)
   (
      (ABORT no_v37)
   )
)

(MESSAGE msg_0)

(SET destdir
   (ASKDIR
      (PROMPT "\n" msg_1)
      (HELP @askdir-help)
      (DEFAULT "SYS:GAMES/")
   )
)

(COPYFILES
   (SOURCE "TicTacAMIGA")
   (DEST destdir)
   (INFOS)
)

(COMPLETE 33)

(IF (= @language "deutsch")
   (
      (COMPLETE 66)
      (COPYFILES
         (SOURCE "catalogs/deutsch/tictacamiga.catalog")
         (DEST "locale:catalogs/deutsch/")
         (INFOS)
      )
   )
   (
      (COMPLETE 66)
   )
)

(COPYFILES
   (SOURCE "TicTacAMIGA.config")
   (DEST "ENVARC:")
   (INFOS)
)

(COMPLETE 100)

(EXIT done)
