home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 7 / FreshFishVol7.bin / bbs / comm / spot-1.3.lha / Spot / Install / Workbench_2.0 < prev    next >
Text File  |  1993-10-08  |  4KB  |  172 lines

  1.  
  2. ; Install script for Spot (Workbench 2.0)
  3.  
  4. (set reqtoolslib "/libs/reqtools.library")
  5. (set powerpackerlib "/libs/powerpacker.library")
  6. (set spotdir "/")
  7.  
  8. ;=============================================================================
  9. ; English strings
  10.  
  11. (set default_lang 2)
  12.  
  13. (set #bad-kick
  14. (cat "You must be using Kickstart 2.04 to install using this script!"
  15. ))
  16.  
  17. (set #copying-reqtools     "Copying reqtools.library to Libs:...")
  18. (set #copying-powerpacker  "Copying powerpacker.library to Libs:...")
  19.  
  20. (set #where-mail "Where should MAIL: be assigned ?")
  21. (set #where-spot
  22. (cat "Where would you like to install Spot ?\n"
  23.      "(A drawer will be created)"
  24. ))
  25.  
  26. (set #add-mail-startup
  27. (cat "\nAdd MAIL: assignment to the \"S:user-startup\" "
  28.      "so that your system will be properly configured to use Spot ?"
  29. ))
  30.  
  31. (set #copy-arexx "\nInstall supplied ARexx scripts in REXX: ?")
  32. (set #copy-arexx-help
  33. (cat "\nThis will install some ARexx scripts "
  34.      "that are included in the Spot distribution."
  35. ))
  36.  
  37. (set #which-language
  38. (cat "\nWhich languages should be installed?"
  39. ))
  40. (set #which-language-help
  41. (cat "\nThe Amiga can be operated in many different"
  42.       " languages. If you want Spot to use the same"
  43.      " language as the Amiga Workbench"
  44.       " then a catalog file must be copied to your"
  45.       " harddisk for each language supported.\n\n"
  46.       "To reduce the amount of space consumed by the"
  47.       " language files, you can select to have only the"
  48.       " files of specific languages copied.\n\n"
  49.       "Simply check the boxes of the languages you wish"
  50.       " to have available on your system.\n\n"
  51.       @askoptions-help
  52. ))
  53.  
  54. (set #install-msg
  55. (cat "\n\nSpot installation script.\n"
  56.      "This script installs Spot on your Amiga.\n\n"
  57.      "Read the README file for more information\n"
  58.      "on the distribution of Spot.\n\n"
  59.      "Spot © 1993 Nico François\n"
  60.      "All rights reserved."
  61. ))
  62.  
  63. ;=============================================================================
  64. ; make sure we are running under a 2.04 ROM
  65.  
  66. (if (< (/ (getversion) 65536) 37)
  67. (
  68.     (abort #bad-kick)
  69. ))
  70.  
  71. ;=============================================================================
  72.  
  73. (message #install-msg)
  74.  
  75. (set maildir (getassign "MAIL"))
  76.  
  77. (if maildir
  78. (set dummy 1)
  79. (
  80.     (set maildir
  81.         (askdir
  82.             (prompt #where-mail)
  83.             (help @askdir-help)
  84.             (default @default-dest)
  85.         )
  86.     )
  87.     (makeassign "MAIL" maildir (safe))
  88.     (startup "Spot"
  89.         (prompt #add-mail-startup)
  90.         (help @startup-help)
  91.         (command
  92.             "Assign MAIL: \"" maildir "\"\n"
  93.         )
  94.     )
  95. ))
  96.  
  97. (set spotdestdir
  98.     (tackon
  99.         (askdir
  100.             (prompt #where-spot)
  101.             (help @askdir-help)
  102.             (default @default-dest)
  103.         )
  104.         "Spot"
  105.     )
  106. )
  107.  
  108. (set @default-dest spotdestdir)
  109.  
  110. (copylib
  111.     (prompt "\n" #copying-reqtools)
  112.     (help @copylib-help)
  113.     (source reqtoolslib)
  114.     (dest "Libs:")
  115.     (confirm)
  116. )
  117.  
  118. (copylib
  119.     (prompt "\n" #copying-powerpacker)
  120.     (help @copylib-help)
  121.     (source powerpackerlib)
  122.     (dest "Libs:")
  123.     (confirm)
  124. )
  125.  
  126. (makedir spotdestdir (infos))
  127. (makedir (tackon spotdestdir "Catalogs"))
  128.  
  129. (copyfiles
  130.     (source (tackon spotdir "Spot"))
  131.     (dest spotdestdir)
  132.     (infos)
  133. )
  134.  
  135. (copyfiles
  136.     (source (tackon spotdir "Spot.guide"))
  137.     (dest spotdestdir)
  138.     (infos)
  139. )
  140.  
  141. (tooltype
  142.     (dest (tackon spotdestdir "Spot.guide"))
  143.     (setdefaulttool "SYS:Utilities/AmigaGuide")
  144. )
  145.  
  146. (copyfiles
  147.     (source (tackon spotdir "Spot.doc"))
  148.     (dest spotdestdir)
  149.     (infos)
  150. )
  151.  
  152. (copyfiles
  153.     (source (tackon spotdir "README"))
  154.     (dest spotdestdir)
  155.     (infos)
  156. )
  157.  
  158. (if
  159.     (askbool
  160.         (prompt #copy-arexx)
  161.         (help #copy-arexx-help)
  162.         (default 1)
  163.     )
  164.     (
  165.         (copyfiles
  166.             (source (tackon spotdir "Rexx"))
  167.             (dest "REXX:Spot")
  168.             (all)
  169.         )
  170.     )
  171. )
  172.