home *** CD-ROM | disk | FTP | other *** search
/ YPA: Your Privacy Assured / YPA.ISO / other_goodies / utilities / powercache37115.lha / Installation / Install_PowerCache.IconX next >
Text File  |  1994-01-24  |  3KB  |  114 lines

  1. ; $VER: PowerCache_Install_IconX 37.104 (22.1.94)
  2. ;
  3. ; Installation script for PowerCache. Will install 68000-68040 executable,
  4. ; documentation and also locale files for users running v38.
  5. ;
  6. ; Distributed as a part of the PowerCache project.
  7. ; PowerCache is Copyright (C) 1993, 1994 by Michael Berg
  8. ; All righs reserved
  9. ;
  10. FailAt 20
  11.  
  12. Echo "PowerCache installation script for use with IconX"
  13. Echo "Copyright ⌐ 1993, 1994 by Michael Berg"
  14. Echo "All Rights Reserved"
  15. Echo ""
  16.  
  17. Echo "Installing Libraries:"
  18.  
  19. Echo "    reqtools.library"
  20.  
  21. SetEnv DoCopyLib YES
  22.  
  23. Version >NIL: reqtools.library 37
  24. If NOT WARN
  25.     Echo "        You already have: " NOLINE
  26.     Version reqtools.library
  27.     Echo "" NOLINE
  28.     Ask "        Do you want to install version 38.1194 of reqtools.library?"
  29.     If NOT WARN
  30.         SetEnv DoCopyLib NO
  31.     EndIf
  32. EndIf
  33.  
  34. If $DoCopyLib EQ "YES"
  35.     Echo "        Copying reqtools.library to your LIBS: ..."
  36.     Copy /libs/reqtools.library LIBS: QUIET
  37. Else
  38.     Echo "        Skipped"
  39. EndIf
  40.  
  41. Avail >NIL: FLUSH
  42.  
  43. Echo ""
  44.  
  45. If EXISTS Locale:Catalogs
  46.     Echo "Do you wish to install the PowerCache catalog files?"
  47.     Ask  "Kickstart 2.04 users should answer No, all others Yes: [y/n]:"
  48.     If WARN
  49.         Copy >NIL: Locale Locale: All
  50.         Echo "Catalogs installed"
  51.     EndIf
  52. Else
  53.     Echo "Catalog files not installed -- no Locale directory found"
  54. EndIf
  55.  
  56. If EXISTS SYS:Tools/Commodities
  57.     SetEnv TargetDir Sys:Tools/Commodities
  58. Else
  59.     SetEnv TargetDir Sys:
  60. Endif
  61.  
  62. Lab SelectVersion
  63.  
  64. Echo "Which version do you wish to install?"
  65. Echo "Enter '000' for the 68000 version"
  66. Echo "Enter '020' for the 68020 version"
  67. Echo "Enter '030' for the 68030 version"
  68. Echo NOLINE "Enter '040' for the 68040 version: "
  69. /GetLine >ENV:PCInstallVersion
  70.  
  71. If $PCInstallVersion EQ "000"
  72.     SetEnv SourceFile /PowerCache
  73. Else
  74.     SetEnv SourceFile /PowerCache.$PCInstallVersion
  75. EndIf
  76.  
  77. If NOT EXISTS $SourceFile
  78.     Echo "Illegal selection. Please re-select*N"
  79.     Skip BACK SelectVersion
  80. EndIf
  81.  
  82. Echo "Installing the PowerCache files in $TargetDir/PowerCache/"
  83.  
  84. MakeDir $TargetDir/PowerCache
  85. MakeDir $TargetDir/PowerCache/Documentation
  86.  
  87. If EXISTS Env:Sys/def_drawer.info
  88.     Copy >NIL: Env:Sys/def_drawer.info $TargetDir/PowerCache.info
  89.     Copy >NIL: Env:Sys/def_drawer.info $TargetDir/PowerCache/Documentation.info
  90. Else
  91.     Echo "-> Note: No default drawer icon found. You'll have to use the"
  92.     Echo "   'show all' workbench menu item to locale the PowerCache drawer"
  93.     Echo "   in $TargetDir."
  94. EndIf
  95.  
  96. Copy >NIL: $SourceFile $TargetDir/PowerCache
  97. Copy >NIL: $SourceFile.info $TargetDir/PowerCache
  98. Copy >NIL: /Documentation/#?.guide#? $TargetDir/PowerCache/Documentation
  99.  
  100. Echo "Add PowerCache: ASSIGN statement to S:User-Startup?"
  101. Ask  "(Not strictly required to run PowerCache, but recommended) [y/n]:"
  102.  
  103. If WARN
  104.     Echo "Adding to S:User-Startup..."
  105.  
  106.     Echo ";BEGIN PowerCache" >>S:User-Startup
  107.     Echo "Assign PowerCache: *"$TargetDir/PowerCache*" DEFER" >>S:User-Startup
  108.     Echo ";END PowerCache" >>S:User-Startup
  109.  
  110.     Echo "*NNote: Make sure your S:Startup-sequence executes S:User-Startup!"
  111. EndIf
  112.  
  113. Echo "*NInstallation complete. You may close the window now."
  114.