home *** CD-ROM | disk | FTP | other *** search
/ Aminet 18 / aminetcdnumber181997.iso / Aminet / dev / misc / memake.lha / memake / Install < prev    next >
Encoding:
Text File  |  1997-01-30  |  2.8 KB  |  163 lines

  1. ;
  2. ; Installer-Script for MEMake 2.0
  3. ;    Autor    : Malte Eller
  4. ;    Version    : 1.1
  5. ;    Datum    : 16.01.1997
  6. ;
  7. ;    $VER: Install 1.0 (16.01.1997)
  8. ;
  9. ;**************************************************
  10.  
  11. (set @user-level 1)
  12.  
  13. (if (= @language "deutsch")
  14. (
  15. (set #bad-kick (cat "Leider wird OS2.0 oder höher benötigt"))
  16. (set #askdir1 (cat "Wohin wollen Sie MEMake installieren?\n"
  17. "Dort wird dann eine neue Schubalde angelegt"))
  18. (set #fragetext (cat "Soll ich das Programm auch in die\n"
  19. " WBStartup kopieren?"))
  20. (set #ja (cat "Ja"))
  21. (set #nein (cat "Nein"))
  22. (set #confirmt (cat "Was soll ich instalieren?"))
  23. (set #fragetextL (cat "Welche Sprachen sollen installiert werden?"))
  24. (set #fragestext (cat "Soll ich das Prefsfile nach S: kopieren?"))
  25. )
  26.  
  27. (
  28. (set #bad-kick (cat "I need OS2.0 or higher"))
  29. (set #askdir1 (cat "In which Drawer will you install MEMake?\n"
  30. "A new Drawer will be create"))
  31. (set #fragetext (cat "Should I copy the Program to WBStartup"))
  32. (set #ja (cat "Yes"))
  33. (set #nein (cat "No"))
  34. (set #confirmt (cat "What should I install?"))
  35. (set #fragetextL (cat "Which languages should I install?"))
  36. (set #fragestext (cat "Sould I copy the Prefsfile to S:"))
  37. ))
  38.  
  39. ;**************************************************
  40.  
  41. (if (< (/ (getversion) 65536) 37)
  42. (
  43.     (abort #bad-kick)
  44. ))
  45.  
  46. ;**************************************************
  47.  
  48. (complete 0)
  49.  
  50. (set #name
  51.     (askdir
  52.         (prompt #askdir1)
  53.         (help @askdir-help)
  54.         (default "sys:")
  55.     )
  56. )
  57.  
  58. (set #Dname (tackon #name "MEMake"))
  59.  
  60. (makedir #Dname
  61.  (infos)
  62. )
  63.  
  64. (copyfiles
  65.     (source "")
  66.     (dest #Dname)
  67.     (pattern "#?")
  68.     (prompt #confirmt)
  69.     (help @confirm-help)
  70.     (confirm)
  71. )
  72.  
  73. (complete 50)
  74.  
  75. ;**************************************************
  76.  
  77. (set name
  78.     (askoptions
  79.         (prompt #fragetext)
  80.         (help @askoptions-help)
  81.         (choices #Ja)
  82.         (default 1)
  83.     )
  84. )
  85.  
  86. (if (= 1 name)
  87. (
  88.  (copyfiles
  89.     (source "MEMake")
  90.     (dest "sys:WBStartup")
  91.     (prompt #fragetext)
  92.     (help @confirm-help)
  93.     (confirm)
  94.  )
  95.  (copyfiles
  96.     (source "MEMake.info")
  97.     (dest "sys:WBStartup")
  98.     (prompt #fragetext)
  99.     (help @confirm-help)
  100.     (confirm)
  101.  )
  102. )
  103. )
  104.  
  105. (copyfiles
  106.     (source "MEMake.prefs")
  107.     (dest "s:")
  108.     (prompt #fragestext)
  109.     (help @confirm-help)
  110.     (confirm)
  111. )
  112. (copyfiles
  113.     (source "MEMake.ToolsListe")
  114.     (dest "s:")
  115.     (prompt #fragestext)
  116.     (help @confirm-help)
  117.     (confirm)
  118. )
  119.  
  120. (complete 80)
  121.  
  122. ;**************************************************
  123.  
  124. (if (exists "sys:locale/catalogs")
  125.  
  126.  (set #lang (askoptions
  127.         (prompt #fragetextL)
  128.         (help @askoptions-help)
  129.         (choices "Deutsch" "English")
  130.         (default 1))
  131.  )
  132. )
  133.  
  134. (set #n 0)
  135.  
  136. (while
  137.     (set #sprache
  138.          (select #n
  139.              "Deutsch"
  140.              "English"
  141.              ""
  142.          )
  143.      )
  144.     (
  145.      (if (IN #lang #n)
  146.         (
  147.          (set #catalog (tackon "Catalogs" (tackon #sprache "MEMake.catalog")))
  148.          (set #destination (tackon "Locale:Catalogs/" #sprache))
  149.          (copyfiles
  150.             (source #catalog)
  151.             (dest #destination)
  152.             (prompt #confirmt)
  153.             (help @confirm-help)
  154.             (confirm))
  155.         )
  156.      )
  157.      (set #n (+ #n 1))
  158.     )
  159. )
  160.  
  161. (complete 100)
  162.