home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Amiga Shareware Floppies / ma70.dms / ma70.adf / Vinci / Install < prev    next >
Text File  |  1996-07-03  |  6KB  |  315 lines

  1. ; *******************************************************************
  2. ;
  3. ; $VER: Install_Vinci 2.3 (16.3.96)
  4. ; Install script for Vinci copyright © 1995-1996 Martin Wulffeld
  5. ;
  6. ; *******************************************************************
  7.  
  8. (set old_level @user-level)
  9. (set @default-dest "")
  10.  
  11. (set default_lang 2)
  12.  
  13. (set #bad-kick
  14. (cat "You must at least have Kickstart 2.04 to install Vinci!"
  15. ))
  16.  
  17. (set #copying-reqtools        "\nCopying reqtools.library 38.1413 to LIBS:...")
  18. (set #copying-unpack        "\nCopying unpack.library 42.71 to LIBS:...")
  19. (set #copying-vinci            "\nCopying Vinci...")
  20. (set #copying-tools            "\nCopying Support Tools...")
  21. (set #copying-documentation    "\nCopying Vinci documentation...")
  22. (set #copying-icons            "\nCopying icons...")
  23. (set #copying-catalogs        "\nCopying catalogs...")
  24. (set #copying-regfiles        "\nCopying registration files...")
  25. (set #copying-rexxscripts    "\nCopying rexx scripts...")
  26. (set #exchange-icons        "\nWould you like to exchange the standard icons with the MagicWB icons ?")
  27. (set #which-kind            "\nWhich kind?")
  28. (set #select-dest            "Please select the path where you want to install Vinci. A drawer named Vinci will be created there.")
  29. (set #select-destguide        "Please select the path where you want to install the Vinci documentation. It has already been installed along with the main program.")
  30. (set #select-destrexx        "Please select the path where you want to install the Rexx scripts. A drawer named Vinci will be created there.")
  31. (set #which-language        "\nWhich languages should be installed ?\n")
  32. (set #which-language-help
  33.  (cat "\nThe Amiga can be operated in many different"
  34.       " languages. If you want Vinci to use the"
  35.       " same language as the Amiga Workbench"
  36.       " then a catalog file must be copied to your"
  37.       " harddisk for each language supported.\n\n"
  38.       "To reduce the amount of space consumed by the"
  39.       " language files, you can select to have only the"
  40.       " files of specific languages copied.\n\n"
  41.       "Simply check the boxes of the languages you wish"
  42.       " to have available on your system.\n\n"
  43.       @askoptions-help
  44. ))
  45.  
  46. ;=============================================================================
  47. ; Make sure we are running under a 2.04 ROM
  48.  
  49. (if (< (/ (getversion) 65536) 37)
  50. (
  51.     (abort #bad-kick)
  52. ))
  53.  
  54. ;=============================================================================
  55.  
  56. ;*** Required libraries
  57.  
  58. (copylib
  59.     (prompt #copying-reqtools)
  60.     (help @copylib-help)
  61.     (source "Libs/reqtools.library")
  62.     (dest "LIBS:")
  63.     (confirm)
  64. )
  65.  
  66. (copylib
  67.     (prompt #copying-unpack)
  68.     (help @copylib-help)
  69.     (source "Libs/unpack.library")
  70.     (dest "LIBS:")
  71.     (confirm)
  72. )
  73.  
  74. ;*** Vinci executable
  75.  
  76. (set programdir
  77.     (tackon
  78.         (askdir
  79.             (prompt  #select-dest)
  80.             (help @askdir-help)
  81.             (default "SYS:")
  82.             (newpath)
  83.         )
  84.         "Vinci"
  85.     )
  86. )
  87.  
  88. (makedir programdir
  89.     (infos)
  90. )
  91.  
  92. (set @default-dest programdir)
  93.  
  94. (copyfiles
  95.     (prompt #copying-vinci)
  96.     (source "Vinci")
  97.     (dest programdir)
  98.     (infos)
  99. )
  100.  
  101. ;*** Copy Vinci AppIcon
  102.  
  103. (copyfiles
  104.     (prompt #copying-vinci)
  105.     (source "Vinci_APPICON.info")
  106.     (dest programdir)
  107. )
  108.  
  109. ;*** Copy Support tools
  110.  
  111. (copyfiles
  112.     (prompt #copying-tools)
  113.     (source "")
  114.     (dest programdir)
  115.     (pattern "Support Tools#?")
  116. )
  117.  
  118. ;*** Copy Catalogs to Vinci dir for backup
  119.  
  120. (copyfiles
  121.     (prompt #copying-catalogs)
  122.     (source "")
  123.     (dest programdir)
  124.     (pattern "Catalogs#?")
  125. )
  126.  
  127. ;*** Copy registration files
  128.  
  129. (copyfiles
  130.     (prompt #copying-regfiles)
  131.     (source "")
  132.     (dest programdir)
  133.     (pattern "Registration#?")
  134. )
  135.  
  136. ;*** Documentation files
  137.  
  138. ; Backup
  139.  
  140. (copyfiles
  141.     (prompt #copying-documentation)
  142.     (source "")
  143.     (dest programdir)
  144.     (pattern "Documentation#?")
  145. )
  146.  
  147. ; Ask if documentation should be installed elsewhere
  148.  
  149. (set tempdocdir
  150.     (tackon
  151.         programdir
  152.         "Documentation"
  153.     )
  154. )
  155.  
  156. (set docdir
  157.     (askdir
  158.         (prompt #select-destguide)
  159.         (help @askdir-help)
  160.         (default tempdocdir)
  161.         (newpath)
  162.     )
  163. )
  164.  
  165. (copyfiles
  166.     (prompt #copying-documentation)
  167.     (source "Documentation/Vinci.guide")
  168.     (dest docdir)
  169.     (infos)
  170. )
  171.  
  172. ;*** Copy icons
  173.  
  174. (set iconsdir
  175.     (tackon
  176.         programdir
  177.         "MagicWB Icons"
  178.     )
  179. )
  180.  
  181. (copyfiles
  182.     (prompt #copying-icons)
  183.     (source "MagicWB Icons")
  184.     (pattern "#?")
  185.     (dest iconsdir)
  186.     (infos)
  187. )
  188.  
  189. ; Copy icon for MagicWB Icons drawer
  190.  
  191. (copyfiles
  192.     (prompt #copying-icons)
  193.     (source "MagicWB Icons.info")
  194.     (dest programdir)
  195. )
  196.  
  197. ;*** Exchange with MagicWB icons
  198.  
  199. (set mwbicons
  200.     (askbool
  201.         (prompt #exchange-icons)
  202.         (help "")
  203.     )
  204. )
  205.  
  206. (if mwbicons
  207. (
  208.     (set whichkind
  209.         (askchoice
  210.             (prompt #which-kind)
  211.             (help "")
  212.             (choices "Ancient" "Modern")
  213.         )
  214.     )
  215.     
  216.     (if (= whichkind 0)
  217.         (
  218.             (set magicwbdir
  219.                 (tackon
  220.                     iconsdir
  221.                     "Ancient"
  222.                 )
  223.             )
  224.             (copyfiles
  225.                 (prompt #copying-icons)
  226.                 (source magicwbdir)
  227.                 (pattern "#?")
  228.                 (dest programdir)
  229.             )
  230.         )
  231.         (
  232.             (set magicwbdir
  233.                 (tackon
  234.                     iconsdir
  235.                     "Modern"
  236.                 )
  237.             )
  238.             (copyfiles
  239.                 (prompt #copying-icons)
  240.                 (source magicwbdir)
  241.                 (pattern "#?")
  242.                 (dest programdir)
  243.             )
  244.         )
  245.     )
  246. ))
  247.  
  248. ;*** Copy rexx scripts
  249.  
  250. (set rexxdir
  251.     (tackon
  252.         (askdir
  253.             (prompt #select-destrexx)
  254.             (help @askdir-help)
  255.             (default "REXX:")
  256.             (newpath)
  257.         )
  258.         "Vinci"
  259.     )
  260. )
  261.  
  262. (makedir rexxdir
  263. )
  264.  
  265. (copyfiles
  266.     (prompt #copying-rexxscripts)
  267.     (source "Rexx")
  268.     (pattern "#?")
  269.     (dest rexxdir)
  270. )
  271.  
  272. ;*** Install locale file
  273.  
  274. (if (exists "SYS:Locale")
  275. (
  276.     (if (exists "LOCALE:")
  277.     (
  278.         (set lang (askoptions (prompt #which-language)
  279.                                 (help #which-language-help)
  280.                                 (choices
  281.                                     "Dansk"
  282.                                     "Svenska"
  283.                                     "English")
  284.                                 (default default_lang)
  285.                     )
  286.         )
  287.         
  288.         (set n 0)
  289.         (while
  290.             (set language (select n
  291.                                 "dansk"
  292.                                 "svenska"
  293.                                 "")
  294.             )
  295.         (
  296.             (if (IN lang n)
  297.             (
  298.                 (if (< n 3)
  299.                 (
  300.                     (makedir (cat "LOCALE:Catalogs/" language))
  301.                     (copyfiles (source (cat "Catalogs/" language))
  302.                                 (dest (cat "LOCALE:Catalogs/" language))
  303.                                 (all)
  304.                     )
  305.                 ))
  306.             ))
  307.             (set n (+ n 1))
  308.         ))
  309.     ))
  310. ))
  311.  
  312. (exit "Please reboot or flush your memory. Some older versions of the installed files might be present in memory."
  313. )
  314.