home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #6 / amigamamagazinepolishissue1998.iso / cdrom / readcdda / install_readcdda next >
Text File  |  1977-12-31  |  5KB  |  270 lines

  1. ;
  2. ; $VER: Install ReadCDDA V1.10 (02.07.1996)
  3. ; This Install-script contains to ReadCDDA V1.10 ©1996 by Michael Siegel
  4. ;
  5. (if (= (exists "Env:Language") 1)
  6.     ; GetEnv reports "String too long" if the variable doesn't exist! :(
  7.     (set @language (getenv "language"))
  8. )
  9.  
  10. ;**************************************************************************
  11. ; English Installation
  12.  
  13. (set default-lang 1)
  14.  
  15. (set #bad-kick
  16.     "You must have AmigaOS Release 3.0 or newer to use ReadCDDA."
  17. )
  18.  
  19. (set #welcome
  20.     (cat
  21.         "\n\n\nWelcome to the ReadCDDA installation.\n\n"
  22.         "   ReadCDDA ©1996  Michael Siegel."
  23.     )
  24. )
  25.  
  26. (set #install-parts "Please select the parts you wish to install")
  27.  
  28. (set #item-readcdda "ReadCDDA")
  29.  
  30. (set #item-readcdda-guide "ReadCDDA.guide")
  31.  
  32. (set #item-locale "Translations")
  33.  
  34. (set #where-readcdda
  35.     (cat
  36.         "Where do you wish to install ReadCDDA.\n The directory 'ReadCDDA' will be created if it is not there. If a copy of Voyager is found it will be backed up."
  37.     )
  38. )
  39.  
  40. (set #which-language "Which languages should be installed?")
  41.  
  42. (set #copy "Copying %s to %s...")
  43. (set #tooltype-step "Specifies the Stepsize\n for read CD-Blocks\n (one Step is 2048 bytes)")
  44. (set #tooltype-iobuffer "Specifies the IO Buffer\n in bytest")
  45.  
  46. ;**************************************************************************
  47. ; Deutsche Installation
  48.  
  49. (if (= @language "deutsch")
  50.     (
  51.         (set default-lang 2)
  52.  
  53.         (set #bad-kick
  54.             (cat
  55.                 "Tut mir Leid!\n"
  56.                 "Aber Sie müßen AmigaOS Release 3.0 oder neur haben für ReadCDDA."
  57.             )
  58.         )
  59.         (set #welcome
  60.             (cat
  61.                 "\n\n\nWillkommen zu der Installation von ReadCDDA.\n\n"
  62.                 "ReadCDDA ©1996  Michael Siegel."
  63.             )
  64.         )
  65.  
  66.         (set #install-parts "Wählen Sie bitte die Teile, die Sie installieren wollen.")
  67.  
  68.         (set #item-readcdda "ReadCDDA")
  69.  
  70.         (set #item-readcdda-guide "ReadCDDA.guide")
  71.  
  72.         (set #item-locale "Kataloge")
  73.  
  74.         (set #where-readcdda "Wo wollen sie ReadCDDA installieren ?\n Ein Verzeichnis 'ReadCDDA' wird erstellt.")
  75.  
  76.         (set #which-language "Welche Sprachen sollen installiert werden?")
  77.  
  78.         (set #copy "Kopiere %s nach %s...")
  79.  
  80.         (set #tooltype-step "Setzt die Schrittweite\n für das Lesen der CD-Blöcke\n (Ein Schritt entspricht 2048 Bytes)")
  81.  
  82.         (set #tooltype-iobuffer "Setzt den IO Buffer\n in Bytes")
  83.     )
  84. )
  85.  
  86. ;**************************************************************************
  87. ; the installaion script
  88.  
  89. (set @default-dest "")
  90.  
  91. ; Check Kickstart version. Exit if not at least 3.0
  92. (if (< (/ (getversion) 65536) 39)
  93.         (abort #bad-kick)
  94. )
  95.  
  96. (message #welcome)
  97.  
  98. (welcome)
  99.  
  100. (set install-files
  101.     (askoptions
  102.         (prompt #install-parts)
  103.         (help   @askoptions-help)
  104.         (choices
  105.             #item-readcdda
  106.             #item-readcdda-guide
  107.             #item-locale
  108.         )
  109.         (default 7)
  110.     )
  111. )
  112.  
  113. (if (IN install-files 0)
  114.     (set readcdda-dest
  115.         (askdir
  116.             (prompt  #where-readcdda)
  117.             (help    @askdir-help)
  118.             (default "Work:")
  119.         )
  120.     )
  121. )
  122.  
  123. (set where readcdda-dest)
  124.  
  125. (if
  126.     (<
  127.         (exists
  128.             (tackon readcdda-dest "ReadCDDA")
  129.         )
  130.     2)
  131.     (makedir
  132.         (tackon readcdda-dest "ReadCDDA")
  133.         (infos)
  134.     )
  135. )
  136.  
  137. (set where (tackon readcdda-dest "ReadCDDA"))
  138. (set @default-dest where)
  139.  
  140. (if (IN install-files 1)
  141.     (set guide-dest @default-dest)
  142. )
  143.  
  144. (set languages 0)
  145.  
  146. (if (IN install-files 2)
  147.     (set lang
  148.         (askoptions
  149.             (prompt  #which-language)
  150.             (help    @askoptions-help)
  151.             (choices
  152.                 "English"
  153.                 "Deutsch"
  154.             )
  155.             (default default-lang)
  156.         )
  157.     )
  158. )
  159.  
  160. ; And now do the actual installation
  161.  
  162. (complete 0)
  163. (if (IN install-files 0)
  164.     (if (not(patmatch "68000|68010" (database "cpu")))
  165.         (copyfiles
  166.             (prompt (#copy "ReadCDDA Turbo" @default-dest))
  167.             (source "ReadCDDA_020")
  168.             (dest   @default-dest)
  169.             (help   @copyfiles-help)
  170.             (newname "ReadCDDA")
  171.             (infos)
  172.             (confirm)
  173.         )
  174.         (copyfiles
  175.             (prompt (#copy "ReadCDDA" @default-dest))
  176.             (source "ReadCDDA")
  177.             (dest   @default-dest)
  178.             (help   @copyfiles-help)
  179.             (infos)
  180.             (confirm)
  181.         )
  182.     )
  183. )
  184. (complete 25)
  185.  
  186. (if (IN install-files 1)
  187.     (
  188.         (copyfiles
  189.             (prompt (#copy "ReadCDDA.guide" guide-dest))
  190.             (source "ReadCDDA.guide")
  191.             (help   @copyfiles-help)
  192.             (dest   guide-dest)
  193.             (infos)
  194.             (confirm)
  195.         )
  196.     )
  197. )
  198.  
  199. (complete 55)
  200.  
  201. (if (IN install-files 2)
  202.     (
  203.         (set n 0)
  204.  
  205.         (while
  206.             (set language
  207.                 (select n
  208.                     "English"
  209.                     "Deutsch"
  210.                     ""
  211.                 )
  212.             )
  213.  
  214.             (
  215.                 (if (AND (IN lang n) (<> 0 n))
  216.                     (
  217.                         (set catalog
  218.                             (tackon "Catalogs"
  219.                                 (tackon language "readcdda.catalog")
  220.                             )
  221.                         )
  222.                         (set destination (tackon "Locale:Catalogs" language))
  223.  
  224.                         (copyfiles
  225.                             (prompt (#copy catalog destination))
  226.                             (source catalog)
  227.                             (dest   destination)
  228.                             (help @copyfiles-help)
  229.                         )
  230.                     )
  231.                 )
  232.  
  233.                 (set n (+ n 1))
  234.             )
  235.         )
  236.     )
  237. )
  238. (complete 80)
  239. (set readcddaicon-dest (tackon @default-dest "ReadCDDA"))
  240.  
  241. (set #step
  242.     (asknumber step
  243.         (prompt (#tooltype-step))
  244.         (help @asknumber-help)
  245.         (range 1 65536)
  246.         (default 32)
  247.     )
  248. )
  249. (tooltype
  250.     (dest readcddaicon-dest)
  251.     (settooltype "STEP" (cat #step))
  252. )
  253. (complete 90)
  254.  
  255. (set #iobuffer
  256.     (asknumber
  257.         (prompt (#tooltype-iobuffer))
  258.         (help @asknumber-help)
  259.         (default 8192)
  260.     )
  261. )
  262.  
  263. (tooltype
  264.     (dest readcddaicon-dest)
  265.     (settooltype "IO_BUFFER" (cat #iobuffer))
  266. )
  267.  
  268. (complete 100)
  269. (exit)
  270.