home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Misc / ro083-cr.lha / RO / Install / RO-Install < prev   
Encoding:
Text File  |  1994-11-05  |  4.6 KB  |  247 lines

  1. ; $VER: RO-Install 0.83 (1.11.94)
  2. ; RO Installer script by Juergen Schubert <juergen@desert.sub.org>
  3. ; Modified by Oliver Rummeyer, inspired by MagicCX-Install ©1994 Kai Iske.
  4.  
  5. ;========================================================
  6. ; Set Strings
  7.  
  8. (set #nokick
  9. (cat "You must be using Kickstart 2.04 to use RO. Aborting!"
  10. ))
  11.  
  12. (set #nomui
  13. (cat "Can`t find \"MUI:\". You need version 2.2 of MUI or better. Aborting!"
  14. ))
  15.  
  16. (set #startmsg
  17. (cat "\n\RO installation script.\n"
  18.      "This script installs RO on your Amiga.\n\n"
  19.      "Read the Documentation files for\n"
  20.      "more information on the distribution.\n"
  21.      "RO © 1994 Oliver Rummeyer\n"
  22.      "All rights reserved."
  23. ))
  24.  
  25. (set #icons "Which type of icons would you like to install")
  26. (set #magicwbicons "MagicWB-Style Icons; 8 colors")
  27. (set #classicicons "Classic-WB-Style Icons; 4 colors")
  28. (set #noicons "No Icons")
  29.  
  30. (set #install "\n\nInstalling RO to\n\n")
  31. (set #drawer
  32. (cat "In which disk or drawer should RO be installed?\n"
  33.      "(A drawer \"RO\" will be created there)"
  34. ))
  35.  
  36. (set #update
  37. (cat "A drawer \"RO\" already exists in the specified disk "
  38.      "or drawer. You should make a backup of your prefs "
  39.      "file before you continue the installation procedure.\n\n"
  40.      "Should I continue the installation procedure?"
  41. ))
  42.  
  43. (set #lang "Which languages should be installed?")
  44. (set #own
  45. (cat    "\n\nIf you want to create own versions of\n"
  46.     "the catalogs please have a look at the\n"
  47.     "distributions Locale directory. You will\n"
  48.     "find the .ct and .cd files there.\n"
  49. ))
  50.  
  51. (set #install-doc "Would you like to install RO`s online documentation?")
  52. (set #doc "Which documentation formats would you like to install?")
  53. (set #doclang "Which language do you prefer for the documentation?")
  54.  
  55. (set #exitmsg "Have fun using RO!\nAnd don`t forget it`s Shareware!")
  56.  
  57. ;========================================================
  58.  
  59. (if (< (/ (getversion) 65536) 37)
  60. (
  61.     (abort #nokick)
  62. ))
  63.  
  64. (if (= (exists "MUI:" (noreq)) 0)
  65. (
  66.     (abort #nomui)
  67. ))
  68.  
  69. ;=========================================================
  70.  
  71. (message #startmsg)
  72.  
  73. (complete 0)
  74.  
  75. ;=========================================================
  76.  
  77. (set IconType
  78.     (askchoice
  79.         (prompt #icons)
  80.         (help @askchoice-help)
  81.         (choices
  82.             #magicwbicons
  83.             #classicicons
  84.             #noicons
  85.         )
  86.         (default 0)
  87.     )
  88. )
  89.  
  90. (complete 20)
  91.  
  92. ;=========================================================
  93.  
  94. (set TargetDir
  95.     (askdir
  96.         (prompt #drawer)
  97.         (default "SYS:Tools")
  98.         (help @askdir-help)
  99.     )
  100. )
  101.  
  102. (set DestDir (tackon TargetDir "RO"))
  103. (set @default-dest DestDir)
  104.  
  105. (if (= (exists DestDir) 2)
  106.    (message #update)
  107. )
  108.  
  109. (complete 40)
  110.  
  111. ;=========================================================
  112.  
  113. (makedir DestDir
  114.     (prompt #install DestDir)
  115. )
  116.  
  117. (if (= IconType 0)
  118.     (
  119.         (copyfiles
  120.             (source "")
  121.             (choices "/Icons/8col/RO.info" "/Icons/8col/RO.guide.info")
  122.             (dest DestDir)
  123.         )
  124.         (copyfiles
  125.             (source "/Icons/8col/Drawer.info")
  126.             (dest TargetDir)
  127.             (newname "RO.info")
  128.         )
  129.     )
  130. )
  131.  
  132. (if (= IconType 1)
  133. (
  134.        (copyfiles
  135.            (source "")
  136.         (choices "/Icons/4col/RO.info" "/Icons/4col/RO.guide.info")
  137.            (dest DestDir)
  138.     )
  139.     (copyfiles
  140.         (source "/Icons/4col/Drawer.info")
  141.         (dest TargetDir)
  142.         (newname "RO.info")
  143.     )
  144. )
  145. )
  146.  
  147. (copyfiles
  148.     (help @copyfiles-help)
  149.     (source "")
  150.     (choices "/Binary/RO" "/Binary/RO.prefs" )
  151.     (dest DestDir)
  152.     (files)
  153. )
  154.  
  155. (complete 60)
  156.  
  157. ;========================================================
  158. ; Install Locale
  159.  
  160. (if (AND (NOT (= (getassign "Locale") "")) (exists "libs:locale.library"))
  161. (
  162.  
  163.     (set Lang
  164.         (askoptions
  165.             (prompt #lang)
  166.             (help @askoptions-help)
  167.             (choices "Deutsch" "Italiano")
  168.             (default 0)
  169.         )
  170.     )
  171.  
  172.     (if (IN Lang 0)
  173.         (copyfiles
  174.             (source "")
  175.             (choices "/Locale/Catalogs/Deutsch/ro.catalog")
  176.             (dest "LOCALE:Catalogs/Deutsch")
  177.         )
  178.     )
  179.  
  180.     (if (IN Lang 1)
  181.         (copyfiles
  182.             (source "")
  183.             (choices "/Locale/Catalogs/Italiano/ro.catalog")
  184.             (dest "LOCALE:Catalogs/Italiano")
  185.         )
  186.     )
  187.  
  188.     (message #own)
  189. ))
  190.  
  191. (complete 80)
  192.  
  193. ;=========================================================
  194.  
  195. (set doctype
  196.     (askoptions
  197.         (prompt #doc)
  198.         (help @askoptions-help)
  199.         (choices "AmigaGuide ® V39")
  200.         (default 1)
  201.     )
  202. )
  203.  
  204. (if (= doctype 1)
  205. (
  206.  
  207.     (set doclang
  208.         (askchoice
  209.             (prompt #doclang)
  210.             (help @askchoice-help)
  211.             (choices
  212.                 "German"
  213.                 "English"
  214.             )
  215.             (default 1)
  216.         )
  217.     )
  218.  
  219.     (if (= doclang 0)
  220.         (copyfiles
  221.             (source "/Docs/RO.guide,deutsch")
  222.             (dest DestDir)
  223.             (newname "RO.guide")
  224.         )
  225.     )
  226.  
  227.     (if (= doclang 1)
  228.         (copyfiles
  229.             (source "/Docs/RO.guide,english")
  230.             (dest DestDir)
  231.             (newname "RO.guide")
  232.         )
  233.     )
  234.  
  235. ))
  236.  
  237. (if (= doctype 0)
  238.     (run "Delete "
  239.         (tackon DestDir "RO.guide.info")
  240.     )
  241. )
  242.  
  243. (complete 100)
  244.  
  245. ;==========================================================
  246. (exit #exitmsg)
  247.