home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 15 / CD_ASCQ_15_070894.iso / vrac / amybw210.zip / INSTALL < prev    next >
Text File  |  1994-04-25  |  3KB  |  185 lines

  1.  
  2. ; AmyBW v2.10 Installation Script. $VER: Install 1.0 (21.04.94)
  3.  
  4. .bra {
  5. .ket }
  6.  
  7. Echo "*E[2mAmyBW v2.10 Installation Script*E[0m"
  8. Echo ""
  9.  
  10. Echo "This script will install AmyBW v2.10 on your harddrive."
  11. Echo "If you are upgrading from a previous version it will only"
  12. Echo "copy the neccesary files. Your names, tagline and keyword"
  13. Echo "files will be not be changed."
  14. Echo ""
  15. Ask "Continue with installation? (Y/N)"
  16.  
  17. If NOT WARN
  18.     Skip abort
  19.     Quit
  20. EndIf
  21.  
  22. Echo ""
  23.  
  24. ;    /*** Get the destination directory ***/
  25.  
  26. Echo "Enter a directory to install AmyBW in. If it doesn't"
  27. Echo "exist a new directory will be created. If you are"
  28. Echo "upgrading simply enter the AmyBW assignment (AmyBW:)"
  29. Echo ""
  30. Echo "Enter directory: " NOLINE
  31.  
  32. Set >NIL: destdir ?
  33. If $destdir EQ ""
  34.     Skip abort
  35. EndIf
  36.  
  37. If NOT EXISTS $destdir
  38.     MakeDir $destdir
  39.     IF WARN
  40.         Echo "Couldn't create directory!"
  41.         Skip abort
  42.     EndIf
  43.     Copy "/AmyBW.info" $destdir.info
  44. EndIf
  45.  
  46. Echo ""
  47.  
  48.  
  49. ;     /*** Copy the files... ***/
  50.  
  51.  
  52. Echo "*E[2mCopying files to" $destdir "...*E[0m"
  53.  
  54. Echo "       AmyBW..." NOLINE
  55. Copy "AmyBW" $destdir
  56. Copy "AmyBW.info" $destdir
  57. Echo "Done"
  58.  
  59. Echo " AmyBW.guide..." NOLINE
  60. Copy "AmyBW.guide" $destdir
  61. Copy "AmyBW.guide.info" $destdir
  62. Echo "Done"
  63.  
  64. Echo "   AmyBWSave..." NOLINE
  65. Copy "AmyBWSave" $destdir
  66. Echo "Done"
  67.  
  68. Echo "      README..." NOLINE
  69. Copy "README" $destdir
  70. Copy "README.info" $destdir
  71. Echo "Done"
  72.  
  73.  
  74. ;    /*** The next files must never be overwritten! ***/
  75.  
  76.  
  77. Assign AmyBW_CD: ""
  78. CD $destdir
  79.  
  80. If NOT EXISTS Taglines.txt
  81.     Echo "Taglines.txt..." NOLINE
  82.     Copy AmyBW_CD:Taglines.txt ""
  83.     Echo "Done"
  84. EndIF
  85.  
  86. If NOT EXISTS Keywords.txt
  87.     Echo "Keywords.txt..." NOLINE
  88.     Copy AmyBW_CD:Keywords.txt ""
  89.     Echo "Done"
  90. EndIF
  91.  
  92. If NOT EXISTS AmyBW.names
  93.     Echo " AmyBW.names..." NOLINE
  94.     Copy AmyBW_CD:AmyBW.names ""
  95.     Echo "Done"
  96. EndIF
  97.  
  98. If NOT EXISTS Sample.iff
  99.     Echo "  Sample.iff..." NOLINE
  100.     Copy AmyBW_CD:Sample.iff ""
  101.     Echo "Done"
  102. EndIF
  103.  
  104. If NOT EXISTS Rot13.rexx
  105.     Echo "  Rot13.rexx..." NOLINE
  106.     Copy AmyBW_CD:Rot13.rexx ""
  107.     Echo "Done"
  108. EndIF
  109.  
  110. Echo ""
  111.  
  112. CD AmyBW_CD:
  113. Assign AmyBW_CD:
  114.  
  115.  
  116. ;     /*** Now copy the EAGUI.library... ***/
  117.  
  118.  
  119. Echo "*E[2mChecking libraries...*E[0m"
  120. Echo ""
  121.  
  122. Echo "   `EAGUI.library'... " NOLINE
  123. Version >NIL: Libs:EAGUI.library VERSION 1 REVISION 1
  124.  
  125. If WARN
  126.     Echo "Copying..." NOLINE
  127.     Copy Libs/EAGUI.library Libs:
  128.     Echo "Done."
  129. Else
  130.     Echo "already installed."
  131. EndIf
  132.  
  133. Echo "`reqtools.library'... " NOLINE
  134. Version >NIL: Libs:reqtools.library VERSION 38
  135. If WARN
  136.     Echo "You need the reqtools.library v38 or higher!"
  137. Else
  138.     Echo "Ok"
  139. EndIF
  140.  
  141.  
  142. Echo "`diskfont.library'... " NOLINE
  143. Version >NIL: Libs:diskfont.library VERSION 36
  144. If WARN
  145.     Echo "You need the diskfont.library v36 or higher!"
  146. Else
  147.     Echo "Ok"
  148. EndIF
  149.  
  150. Echo ""
  151.  
  152.  
  153. ;    /*** Setup the "AmyBW:" assignment, if it doesn't already exist ***/
  154.  
  155.  
  156. Search >NIL: S:User-Startup "AmyBW:"
  157.  
  158. If WARN
  159.     Echo "AmyBW needs the assignment `AmyBW:' to run. Would you like"
  160.     Echo "the following line to be added to your `User-Startup' file?"
  161.     Echo ""
  162.     Echo "*E[2mAssign AmyBW: " $destdir "*E[0m"
  163.     Echo ""
  164.     Ask "Add to User-Startup? (Y/N)"
  165.     If WARN
  166.         Echo >>S:User-Startup "Assign AmyBW: " $destdir
  167.     EndIf
  168. EndIf
  169.  
  170. Assign AmyBW: $destdir
  171.  
  172.  
  173. ;    /*** All done. ***/
  174.  
  175.  
  176. Echo ""
  177. Echo "Installation complete, close window." NOLINE
  178. Skip End
  179.  
  180. Lab abort
  181.     Echo ""
  182.     Echo "Installation aborted, close window." NOLINE
  183.  
  184. lab End
  185.