home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d9xx / d974 / kingcon.lha / KingCON / Installation < prev    next >
Text File  |  1993-12-15  |  3KB  |  103 lines

  1. ; $VER: Installation 1.1 (15.10.93)
  2.  
  3. FailAt 21
  4.  
  5. Echo "*E[4mKingCON v1.1 installation-script. Copyright © 1993 David Larsson*E[0m"
  6. Echo ""
  7.  
  8.  
  9. ; We shouldn't install an earlier or identical version of KingCON-handler
  10. ; without asking first.
  11. Version >NIL: L:KingCON-handler VERSION 1 REVISION 1
  12. IF NOT WARN
  13.     Echo "You are trying to install an older or identical version of KingCON-handler."
  14.     Ask  "Do you still want to continue (Y/N)?"
  15.  
  16.     IF NOT WARN    ; User aborts!
  17.         Echo ""
  18.         Echo "Installation aborted."
  19.         SKIP End
  20.     ENDIF
  21.     Echo ""
  22. ENDIF
  23.  
  24. CPU >NIL: CHECK 68020        ; This checks for the presence of
  25.                 ; a faster processor and copies
  26.                 ; the appropriate file
  27.                 ; Note that KingCON-handler.020
  28.                 ; is renamed!!
  29. IF WARN
  30.     Echo "Copying 68000-version of *E[1mKingCON-handler to L:*E[0m..." NOLINE
  31.     Copy Handler/KingCON-handler L: CLONE
  32. ELSE
  33.     Echo "Copying 68020-version of *E[1mKingCON-handler to L:*E[0m..." NOLINE
  34.     Copy Handler/KingCON-handler.020 L:KingCON-handler CLONE  ; Renamed!
  35. ENDIF
  36.  
  37. Echo "Done"
  38.  
  39.  
  40. Echo "Copying *E[1mKingCON-mountlist to DEVS:*E[0m..." NOLINE
  41. Copy Handler/KingCON-mountlist DEVS: CLONE
  42. Echo "Done"
  43.  
  44. ; Remove the previous version of KCON:
  45. ; (OK, it IS a bit unnecessary to do this, since this is the first release
  46. ;  and nobody should have an older version mounted at this stage.
  47. ;  But you can never be too sure...)
  48. Assign KCON: DISMOUNT
  49. Assign KRAW: DISMOUNT
  50.  
  51. Echo "Mounting *E[1mKCON:*E[0m and *E[1mKRAW:*E[0m..." NOLINE
  52. Mount KCON: from DEVS:KingCON-mountlist
  53. Mount KRAW: from DEVS:KingCON-mountlist
  54. Echo "Done"
  55. Echo ""
  56. Echo "The script has mounted KCON: and KRAW: for you. For a more permanent"
  57. Echo "installation, you would probably like them to be mounted automatically"
  58. Echo "every time you start your Amiga. In that case, the startup-sequence"
  59. Echo "must be modified, by adding these lines to s:user-startup"
  60. Echo "   Mount KCON: from DEVS:KingCON-mountlist"
  61. Echo "   Mount KRAW: from DEVS:KingCON-mountlist"
  62. Echo ""
  63.  
  64. ; We should never add any Mount-commands to the user-startup if
  65. ; it is already done. This checks for the presence of the commands.
  66. ; (Well, if we find the word "DEVS:KingCON-mountlist", we can be pretty
  67. ;  sure that KCON: or CON: are mounted in that script.)
  68. Search >NIL: FROM s:user-startup SEARCH DEVS:KingCON-mountlist
  69.  
  70. IF WARN ; No commands were found
  71.     Ask  "Do you want these Mount-commands to be added to s:user-startup (Y/N)?"
  72.  
  73.     IF WARN ; Yes!
  74.         Echo ""
  75.         Echo "Adding to *E[1ms:user-startup*E[0m..." NOLINE
  76.         Echo "" >>s:user-startup
  77.         Echo "; This mounts KCON and KRAW" >>s:user-startup
  78.         Echo "Mount KCON: from DEVS:KingCON-mountlist" >>s:user-startup
  79.         Echo "Mount KRAW: from DEVS:KingCON-mountlist" >>s:user-startup
  80.         Echo "Done"
  81.     ENDIF
  82. ENDIF
  83.  
  84. Echo ""
  85. Echo "To replace old CON and RAW, add the following lines to S:user-startup"
  86. Echo "BEFORE the Mount-commands:"
  87. Echo "   Assign CON: DISMOUNT"
  88. Echo "   Assign RAW: DISMOUNT"
  89. Echo "Then change the words 'KCON:' and 'KRAW:' to 'CON:' and 'RAW:'"
  90. Echo "respectively in the Mount-commands."
  91.  
  92.  
  93. Echo ""
  94. Echo "Installation has completed. If no errors occured, you should now be"
  95. Echo "able to access a device called 'KCON:' (and one called 'KRAW:')."
  96.  
  97. LAB End
  98.  
  99. Echo ""
  100. Echo ""
  101. Echo ""
  102. Echo "                                    *E[0 p*E[3mClose the window or wait forever!*E[0m" NOLINE
  103.