home *** CD-ROM | disk | FTP | other *** search
/ back2roots/padua / padua.7z / padua / ftp.vapor.com / voyager / vflash_1.2.lzx / Install_Plugins < prev    next >
Encoding:
Text File  |  2000-03-11  |  23.0 KB  |  497 lines

  1. ;******************************************************************************
  2. ;     __  __                                   ______ __                  __          
  3. ;    / / / /                                  / __  // /                 /_/         
  4. ;   / / / /______ ______ ______ _____        / /_/ // /  __  __  ______ __   ______ ______
  5. ;  / / / // __  // __  // __  // .__/______ / ____// /  / / / / / __  // /  / __  // ____/
  6. ; / /_/ // __  // /_/ // /_/ // /   /_____// /    / /_ / /_/ / / /_/ // /_ / / / /_\__  /
  7. ; \____//_/ /_// ____//_____//_/          /_/    /___//_____/ _\__  //___//_/ /_//_____/
  8. ;             / /                                            /_____/            
  9. ;            /_/   For Image Decoder and VFlash                                                            
  10. ;
  11. ; $VER: VaporPlugins_Installer 03.7 (March-08-2000) 
  12. ; Installer by Robert C. Reiswig āŒ1998,1999,2000
  13. ;
  14. ; If you wish to use any part of this installer you must ask. May not be 
  15. ; integrated/placed into any other package. Changes, suggestions or problems:
  16. ; voyager@vgr.com or vgr@best.com
  17. ;******************************************************************************
  18.  
  19. ;*** System Stuff ***
  20. (set cpu (database "cpu"))  (set vblank (database "vblank"))
  21. (set graphmem (database "graphics-mem")) (set totmem (database "total-mem"))
  22. (set osver (/ (getversion "LIBS:version.library") 65536))
  23. (if (= vblank "60") ((set blank "NTSC")) ((set blank "PAL")))
  24. (set fastmem (- totmem graphmem))
  25.  
  26. (if (= osver 37) (set workbench "2.0")) (if (= osver 38) (set workbench "2.1"))
  27. (if (= osver 39) (set workbench "3.0")) (if (= osver 40) (set workbench "3.1"))
  28. (if (= osver 41) (set workbench "3.5"))
  29.  
  30. (set cpu (database "cpu"))
  31. (if (> (exists ("sys:libs/68060.library")) 0) (set #cpu 5) )
  32. (if (> (exists ("68060.library") (resident)) 0) (set #cpu 5) )
  33. (if (= cpu 68000) (set #cpu 0)) (if (= cpu 68010) (set #cpu 1))
  34. (if (= cpu 68020) (set #cpu 2)) (if (= cpu 68030) (set #cpu 3))
  35. (if (= cpu 68040) (set #cpu 4)) (if (= cpu 68050) (set #cpu 5)) 
  36.  
  37. (set cpupick cpu)
  38.  
  39. (set #vflashW "") (set #iflashW "")
  40.  
  41. (if (> (exists "Plugins/vimgdecode_68020.vlib") 0)
  42.  (
  43.   (set vernum1 (getversion "Plugins/vimgdecode_68020.vlib")) (set ver1 (/ vernum1 65536))
  44.   (set rev1 (- vernum1 (* ver1 65536) ) ) (set imagever (cat ver1 "." rev1))
  45.   
  46.   (set #iflashW (cat "Image Decoder Plugin v" imagever "\nāŒ1998-2000 by Oliver Wagner <owagner@vapor.com>"))
  47.  
  48.  )
  49.  
  50.   (if (> (exists "Plugins") 0) (set vplugdir1 "Plugins") )
  51.   (if (> (exists "plugin") 0)  (set vplugdir1 "plugin") )
  52.   (if (> (exists "VFlash.VPlug") 0)  (set vplugdir1 "") )
  53.  
  54. (if (> (exists (tackon vplugdir1 "VFlash.VPlug")) 0)
  55.  (
  56.   (set vernum1 (getversion (tackon vplugdir1 "VFlash.VPlug"))) (set ver1 (/ vernum1 65536))
  57.   (set rev1 (- vernum1 (* ver1 65536) ) ) (set flashver (cat ver1 "." rev1))
  58.   
  59.   (set #vflashW (cat "VFlash Plugin v" flashver "\nāŒ1999-2000 by David Gerber <zapek@vapor.com>"))
  60.  
  61.  )
  62.  
  63.  
  64. ;********************************************************************
  65. ; English Strings
  66. ;********************************************************************
  67. (set #about (cat "\nWelcome to\n\n" #iflashW  "\n\n" #vflashW "\n\nhttp://v3.vapor.com/") )
  68.  
  69. (set #whereVoyagerP "Please select the dir where Voyager is installed, not the Plugin dir.")
  70.  
  71. (set #updatesetpatch "\nThe installer looked for 'c:setpatch' and did not find it or you have a version lower then 40.16. Voyager needs version 40.16 to work correctly. You wany want to upgrade soon. (NOTE: if you keep 'setpatch' in a different place than 'c:' and its 40.16 or higher then this message is void.)")
  72. (set #updateinstaller "\nJust to let you know ESCOM AG has released a new version of the installer program.\n\n\nVersion 43.3 can be found on Aminet in:\n\n/util/misc/Installer-43_3.lha\n\n\nYou might want to upgrade soon, if you can.")
  73.  
  74. (set #updateplug "\n\n\nInstalling or Updating Plugins")
  75.  
  76.  
  77. (set #askimageP1 "What version of the Image Decoder would you like to install (or update)? The average size for a Image Decoder plugin is about: ")
  78. (set #askimageP2 "Total for all ")
  79. (set #askimageP3 " *=Not found in archive.")
  80. (set #askflashP1 "What version of the VFlash plugin would you like to install (or update)? The average size for a VFlash plugin is about ")
  81. (set #askflashP2 "Total for all ")
  82. (set #askflashP3 " *=Not found in archive.")
  83. (set #flashno000 "\n\nNOTE\n~~~~~~~~~~~~~~~~~~~~~~~~~~~\nThe VFlash plugin needs to be installed on an Amiga with at least a 68020 CPU. The installer did not find this. You can install the VFlash plugin but it will not work on 68000 and 68010 based Amigas.")
  84. (set #imageno000 "\n\nNOTE\n~~~~~~~~~~~~~~~~~~~~~~~~~~~\nThe Image plugin needs to be installed on an Amiga with at least a 68020 CPU. The installer did not find this. You can install the Image plugin but it will not work on 68000 and 68010 based Amigas.")
  85. (set #noppclib   "\n\nNOTE\n~~~~~~~~~~~~~~~~~~~~~~~~~~~\nYou selected a PPC plugin that needs PowerUp installed. The installer did not find 'libs:ppc.library' or the library resident. The installer will install the _ppc version of the plugin, if it is in the archive, but without a PPC (with PowerUp) it will not work and you may need to install a different version of the plugin if you did not select another version also.")
  86. (set #noplugfound "\n\nNOTE\n~~~~~~~~~~~~~~~~~~~~~~~~~~~\nThe Plugin you selected was not found it this archive. You will need to install a different version.\n\nPlugin not found:\n")
  87.  
  88. ; #updatedlibs different
  89. (set #updatedlibs "\nInstall/Update the Vapor Libraries?\nCheckmark = In this archive\n(Click 'Help' for more info on the libs.)\n")
  90. (set #lib1 " Update library")
  91. (set #lib2 " Toolkit library")
  92. (set #lib3 " Registration library")
  93. (set #libC " CManager lib [Bookmarks]")
  94. (set #libhelp1 "vapor_update.library:\nIf installed every Vapor app will automagically check for updates by querying the Vapor server via Internet. You will be informed and offered automatic downloading if there is an update.")
  95. (set #libhelp2 "\n\nvapor_toolkit.library:\nContains support functions which are used by most Vapor applications and thus can be shared to reduce individual application code size. ie: Async I/O library, crytographically strong random number generator, math support.")
  96. (set #libhelp3 "\n\nvapor_registration.library:\nContains the core code for the registration utility\n")
  97. (set #libhelpC "\n\nCManager.library:\nThe Contact Manager is a unique product for the Amiga. It's best described as a diary / address book which allows you to store all your contacts' user information, favourite web & ftp sites and IRC server/channels. Voyager uses CManager.library for its 'Bookmarks section'")
  98. (set #wherelibs "Where do you wish to place the Vapor lib(s), 'Libs:' is default.")
  99. (set #flushing "\n\nTrying to flush old Vapor libraries from memory.")
  100.  
  101. (set #libdiff "\nThe installer found one of the Vapor libraries in 'LIBS:' to be a different version than a resident Vapor library (loaded in memory).")
  102. (set #rebootnote1 "\n\nNOTE: If you currently have a Vapor program running now it might have one of the Vapor libraries open. This may prevent the next Vapor application, that may need a newer library from this archive, from working. The installer has already tried to flush the old libraries. If this did not work you may need to reboot.")
  103. (set #rebootnote  "\n\nNOTE: It is strongly recommended that you reboot, after the installer is finished, to ensure that all updated libraries have been flushed. The libraries may be held open by VaporWare applications or MUI custom classes which are currently running.")
  104.  
  105.  
  106. ;********************************************************************
  107. ; German Strings
  108. ;********************************************************************
  109. (if (= lan 1) (set OlliShareSomePizza TRUE_But_From_Long_Ago) )
  110.  
  111.  
  112. ;********************************************************************
  113. ; Check on New installer 
  114. ;********************************************************************
  115. (set InstallerVer 0)
  116. (set vernum1 @installer-version) (set ver1 (/ vernum1 65536)) 
  117. (set rev1 (- vernum1 (* ver1 65536) ) ) (set InstallerVer (cat ver1 "." rev1))
  118. (set current_installer "43.3")
  119. (if (< InstallerVer current_installer) (message #updateinstaller) )
  120.  
  121. ;********************************************************************
  122. ; Check on Setpatch 
  123. ;********************************************************************
  124. (set vernum1 (getversion "c:setpatch")) (set ver1 (/ vernum1 65536)) 
  125. (set rev1 (- vernum1 (* ver1 65536) ) ) (set setpatchver (cat ver1 "." rev1))
  126. (set current_setpatch "40.16")
  127. (if (< setpatchVer current_setpatch) (message #updatesetpatch) )
  128.  
  129. ;********************************************************************
  130. ; Hello
  131. ;********************************************************************
  132. (message #about)
  133.  
  134. (welcome) 
  135.  
  136. ;********************************************************************
  137. ; Check Last ENV
  138. ;********************************************************************
  139. (if (> (exists "env:Vapor/Voyager_LASTUSEDDIR") 0) 
  140.  (
  141.   (set lastdir (getenv "Vapor/Voyager_LASTUSEDDIR"))
  142.   (set lastdirlen (strlen lastdir))
  143.   ;;(set tricklen (+ 1 (strlen (fileonly lastdir))))
  144.   ;;(set lastdir (substr lastdir 0 (- lastdirlen tricklen) ) )
  145.   (if (= 0 (exists lastdir (noreq))) (set lastdir (cat lastdir ":"))) 
  146.  )
  147.  (set lastdir 0)
  148. )
  149.  
  150.  
  151. ;********************************************************************
  152. ; Ask where to put Voyager & Make dir if needed
  153. ;********************************************************************
  154. (set Package (getassign "AmiTCP"))
  155. (if (= Package "") (set Package (getassign "Inet")) )
  156. (if (<> lastdir 0) (set Package lastdir))
  157.  
  158. (set Voyagerdir  (askdir (prompt #whereVoyagerP)
  159.                 (help   #whereVoyagerP)
  160.                      (default Package)
  161.                )  
  162. )
  163.  
  164. (set where Voyagerdir)
  165.  
  166. ;******************************************************************************** 
  167. ; Copy over Plugins stuff
  168. ;********************************************************************************
  169. (procedure install_plugins
  170.  
  171.   (if (< (exists (tackon where "Plugins")) 2) (makedir (tackon where "Plugins") (infos)) )    
  172.   (if (exists "Plugins.info")
  173.    (copyfiles (source "Plugins.info") (dest where) (optional "nofail") ) 
  174.   )
  175.  
  176.   (if (= cpuPick 0) (set defvimgd 0)) (if (= cpuPick 1) (set defvimgd 0)) 
  177.   (if (= cpuPick 2) (set defvimgd 1)) (if (= cpuPick 3) (set defvimgd 2)) 
  178.   (if (= cpuPick 4) (set defvimgd 4)) (if (= cpuPick 5) (set defvimgd 8)) 
  179.   (if (AND (exists "libs:ppc.library")  (exists "Plugins/vimgdecode_ppc.vlib")) (set defvimgd 16))
  180.   (if (AND (exists "ppc.library" (resident)) (exists "Plugins/vimgdecode_ppc.vlib")) (set defvimgd 16))
  181.  
  182.  ;***** Image Decoder Plugin  ******************************
  183.  (if (> (exists "Plugins/vimgdecode_68020.vlib") 0)
  184.  (
  185.   (if (< cpuPick 2) (message #imageno000)) 
  186.  
  187.   (set size 0) (set totalplug 0)
  188.   (foreach "Plugins" "vimgdecode#?"  (set size (+ size (getsize (tackon "Plugins" @each-name)))) (set totalplug (+ totalplug 1)) )
  189.   (set sizek-vimg (/ size 1024))
  190.  
  191.   (if (exists "Plugins/vimgdecode_68020.vlib")    (set vimgd020 "") (set vimgd020 " (*)") ) 
  192.   (if (exists "Plugins/vimgdecode_68030fpu.vlib") (set vimgd030 "") (set vimgd030 " (*)") ) 
  193.   (if (exists "Plugins/vimgdecode_68040fpu.vlib") (set vimgd040 "") (set vimgd040 " (*)") ) 
  194.   (if (exists "Plugins/vimgdecode_68060.vlib")    (set vimgd060 "") (set vimgd060 " (*)") ) 
  195.   (if (exists "Plugins/vimgdecode_ppc.vlib")      (set vimgdppc "") (set vimgdppc " (*)") ) 
  196.  
  197.   (set cpuPickI (askoptions (choices (cat " 68020" vimgd020) (cat " 68030+FPU" vimgd030) 
  198.                                      (cat " 68040+FPU" vimgd040) (cat " 68060" vimgd060)
  199.                                      (cat " PPC (PowerUp)" vimgdppc)
  200.                             ) 
  201.                   (prompt (cat #askimageP1 (/ sizek-vimg totalplug) "K. " #askimageP2 sizek-vimg "K." #askimageP3) )
  202.                       (help   (cat #askimageP1 (/ sizek-vimg totalplug) "K. " #askimageP2 sizek-vimg "K." #askimageP3) )
  203.                     (default defvimgd)
  204.             )
  205.   )
  206.  
  207.   (working #updateplug)
  208.  
  209.   (procedure updatevimg_plug
  210.     (if (exists (tackon "Plugins" (cat "vimgdecode_" imageplugin ".vlib")) )
  211.        (copylib (source (tackon "Plugins" (cat "vimgdecode_" imageplugin ".vlib"))) (dest (tackon where "Plugins")) (optional "nofail") ) 
  212.     )
  213.   )
  214.  
  215.   (set PPCthere 0)
  216.    (if (exists "libs:ppc.library") (set PPClibthere 1)  )
  217.    (if (exists "ppc.library" (resident)) (set PPClibthere 1) )
  218.   (if (AND (= PPClibthere 0) (IN cpuPickI 4)) (message #noppclib)) 
  219.   
  220.   (if (IN cpuPickI 0) ((set imageplugin "68020")    (updatevimg_plug)) ) 
  221.   (if (IN cpuPickI 1) ((set imageplugin "68030fpu") (updatevimg_plug)) )
  222.   (if (IN cpuPickI 2) ((set imageplugin "68040fpu") (updatevimg_plug)) )
  223.   (if (IN cpuPickI 3) ((set imageplugin "68060")    (updatevimg_plug)) )
  224.   (if (IN cpuPickI 4) ((set imageplugin "PPC")      (updatevimg_plug)) )
  225.  
  226.  )
  227.  )
  228.  
  229.  ;*********** Recheck CPU/PPC and file
  230.   (if (= cpuPick 0) (set defvimgd 0)) (if (= cpuPick 1) (set defvimgd 0)) 
  231.   (if (= cpuPick 2) (set defvimgd 1)) (if (= cpuPick 3) (set defvimgd 2)) 
  232.   (if (= cpuPick 4) (set defvimgd 4)) (if (= cpuPick 5) (set defvimgd 8)) 
  233.   (if (AND (exists "libs:ppc.library")  (exists "Plugins/VFlash_ppc.module")) (set defvimgd 16))
  234.   (if (AND (exists "ppc.library" (resident)) (exists "Plugins/VFlash_ppc.module")) (set defvimgd 16))
  235.  
  236.  
  237.  ;***** VFlash Plugin ******************************
  238.   (if (> (exists "Plugins") 0)  
  239.    (
  240.     (set vplugdir "Plugins") (set vplugdir1 "Plugins") 
  241.     (set cpuplugdir020 "")  (set cpuplugdir030 "")
  242.     (set cpuplugdir040 "") (set cpuplugdir060 "") (set cpuplugdirppc "") 
  243.    ) 
  244.   )
  245.  
  246.   (if (> (exists "plugin") 0)    
  247.    (
  248.     (set vplugdir "build")   (set vplugdir1 "plugin") 
  249.     (set cpuplugdir020 "020")    (set cpuplugdir030 "030fpu")
  250.     (set cpuplugdir040 "040fpu") (set cpuplugdir060 "060") (set cpuplugdirppc "ppc") 
  251.    ) 
  252.   )
  253.  
  254.   (if (> (exists "VFlash.VPlug") 0)  
  255.    (
  256.     (set vplugdir "") (set vplugdir1 "") 
  257.     (set cpuplugdir020 "")  (set cpuplugdir030 "")
  258.     (set cpuplugdir040 "") (set cpuplugdir060 "") (set cpuplugdirppc "") 
  259.    ) 
  260.   )
  261.  
  262.  
  263.  (if (> (exists (tackon vplugdir1 "VFlash.VPlug")) 0)
  264.  (
  265.     (if (< cpuPick 2) (message #flashno000)) 
  266.  
  267.     (set size 0) (set totalplug 0)
  268.     (foreach vplugdir "VFlash_#?"  (set size (+ size (getsize (tackon vplugdir @each-name)))) (set totalplug (+ totalplug 1)) )
  269.     (set sizek-vflash (/ size 1024))
  270.  
  271.     ;(if (exists "libs:ppc.library") (set #cpuguess 5))
  272.     ;(if (exists "ppc.library" (resident)) (set #cpuguess 5))
  273.    
  274.     (if (exists (tackon vplugdir (tackon cpuplugdir020 "VFlash_68020.module")))    (set vflash020 "") (set vflash020 " (*)") ) 
  275.     (if (exists (tackon vplugdir (tackon cpuplugdir030 "VFlash_68030fpu.module"))) (set vflash030 "") (set vflash030 " (*)") ) 
  276.     (if (exists (tackon vplugdir (tackon cpuplugdir040 "VFlash_68040fpu.module"))) (set vflash040 "") (set vflash040 " (*)") ) 
  277.     (if (exists (tackon vplugdir (tackon cpuplugdir060 "VFlash_68060.module")))    (set vflash060 "") (set vflash060 " (*)") ) 
  278.     (if (exists (tackon vplugdir (tackon cpuplugdirppc "VFlash_ppc.module")))      (set vflashppc "") (set vflashppc " (*)") ) 
  279.  
  280.     (if (= sizek-vflash 0)
  281.      (set #askflashP100 "")
  282.      (set #askflashP100 (cat #askflashP1a (/ sizek-vflash totalplug) "K. " #askflashP2 sizek-vflash "K."))
  283.     )
  284.  
  285.     (set cpuPickI (askoptions (choices (cat " 68020" vflash020) (cat " 68030+FPU" vflash030) 
  286.                                       (cat " 68040+FPU" vflash040) (cat " 68060" vflash060)
  287.                                       (cat " PPC (PowerUp)" vflashppc)
  288.                              ) 
  289.                        (prompt (cat #askflashP1 #askflashP100 #askflashP3))
  290.                               (help   (cat #askflashP1 #askflashP100 #askflashP3))
  291.                                 (default defvimgd)
  292.               )
  293.     )
  294.  
  295.     (working #updateplug)
  296.  
  297.     (procedure updateflash_plug
  298.       (if (exists (tackon vplugdir (tackon cpuplugdir (cat "VFlash_" flashplugin ".module"))) ) 
  299.          (copylib (source (tackon vplugdir (tackon cpuplugdir (cat "VFlash_" flashplugin ".module")))) (dest (tackon where "Plugins")) (optional "nofail") ) 
  300.       )
  301.     )
  302.  
  303.     (set PPCthere 0)
  304.      (if (exists "libs:ppc.library") (set PPClibthere 1)  )
  305.      (if (exists "ppc.library" (resident)) (set PPClibthere 1) )
  306.     (if (AND (= PPClibthere 0) (IN cpuPickI 4)) (message #noppclib)) 
  307.   
  308.     (if (IN cpuPickI 0) ((set flashplugin "68020")    (set cpuplugdir cpuplugdir020)  (updateflash_plug)) ) 
  309.     (if (IN cpuPickI 1) ((set flashplugin "68030fpu") (set cpuplugdir cpuplugdir030)  (updateflash_plug)) )
  310.     (if (IN cpuPickI 2) ((set flashplugin "68040fpu") (set cpuplugdir cpuplugdir040)  (updateflash_plug)) )
  311.     (if (IN cpuPickI 3) ((set flashplugin "68060")    (set cpuplugdir cpuplugdir060)  (updateflash_plug)) )
  312.     (if (IN cpuPickI 4) ((set flashplugin "PPC")      (set cpuplugdir cpuplugdirppc)  (updateflash_plug)) )
  313.  
  314.     (copylib (source (tackon vplugdir1 "VFlash.VPlug")) (dest (tackon where "Plugins")) (optional "nofail") ) 
  315.  )
  316.  )
  317.  
  318.  
  319.  ;***** ssl Plugin ******************************
  320.   ;(set USA (askchoice (choices #yesc  #noc)
  321.   ;                  (prompt #nossl)
  322.   ;                  (help #nossl)
  323.   ;                     (default 1)
  324.   ;       )
  325.   ;)
  326.  
  327.   ;(if (= USA 0) ; 0=InUSA
  328.   ; (message #okssl)
  329.   ; (copylib (source (tackon "Plugins" "voyager_ssl.vlib")) (dest (tackon where "Plugins")) (optional "nofail") ) 
  330.   ;)
  331.  
  332.  ;***** About & Search Plugin ******************************
  333.   (if (exists (tackon "Plugins" "voyager_about.vlib"))
  334.    (copylib (source (tackon "Plugins" "voyager_about.vlib")) (dest (tackon where "Plugins")) (optional "nofail") ) 
  335.   )
  336.   (if (exists (tackon "Plugins" "Search.VPlug")) 
  337.    (copylib (source (tackon "Plugins" "Search.VPlug")) (dest (tackon where "Plugins")) (optional "nofail") ) 
  338.   )
  339.   (if (exists (tackon "Plugins" "voyager_ssl.vlib"))
  340.    (copylib (source (tackon "Plugins" "voyager_ssl.vlib")) (dest (tackon where "Plugins")) (optional "nofail") ) 
  341.   )
  342. )
  343.  
  344.  
  345.  
  346. (if (OR (OR (exists "Plugins") (exists "build")) (exists "VFlash.VPlug"))   
  347.  (install_plugins)
  348. )
  349.  
  350. (if (exists "flushlib")  (run "flushlib QUIET #?.VPlug #?.vlib vimgdecode#? VFlash#?")   )
  351.  
  352.  
  353.  
  354. ;********************************************************************
  355. ; Copy update Lib if wanted 
  356. ;********************************************************************
  357. (set deflibs 15)
  358. (if (> (exists "libs") 0)
  359.  (
  360.   (set deflibs 0)
  361.   (if (> (exists (tackon "libs" "vapor_update.library")) 0)       (set deflibs (+ deflibs 1)))
  362.   (if (> (exists (tackon "libs" "vapor_toolkit.library")) 0)      (set deflibs (+ deflibs 2)))
  363.   (if (> (exists (tackon "libs" "vapor_registration.library")) 0) (set deflibs (+ deflibs 4)))
  364.   (if (> (exists (tackon "libs" "CManager.library")) 0)           (set deflibs (+ deflibs 8)))
  365.  
  366.   (set libPick (askoptions (choices #lib1 #lib2 #lib3 #libC)
  367.               (prompt #updatedlibs)
  368.                       (help   (cat #libhelp1 #libhelp2 #libhelp3 #libhelpC))
  369.                     (default deflibs)
  370.            )
  371.   )
  372.  
  373.   (if (> libPick 0)
  374.    (
  375.     (set wherelibs (askdir (prompt #wherelibs)
  376.                   (help   #wherelibs)
  377.                        (default "LIBS:")
  378.                    )  
  379.     )
  380.     
  381.     (if (IN libPick 0)
  382.      (if (> (exists (tackon "libs" "vapor_update.library")) 0)
  383.       (copylib (source (tackon "libs" "vapor_update.library")) (dest wherelibs) (optional "nofail"))  
  384.      )
  385.     )
  386.  
  387.     (if (IN libPick 1)
  388.      (if (> (exists (tackon "libs" "vapor_toolkit.library")) 0)
  389.       (copylib (source (tackon "libs" "vapor_toolkit.library")) (dest wherelibs) (optional "nofail"))  
  390.      )
  391.     )
  392.  
  393.     (if (IN libPick 2)
  394.      (if (> (exists (tackon "libs" "vapor_registration.library")) 0)
  395.       (copylib (source (tackon "libs" "vapor_registration.library")) (dest wherelibs) (optional "nofail"))  
  396.      )
  397.     )
  398.  
  399.     (if (IN libPick 3)
  400.      (if (> (exists (tackon "libs" "CManager.library")) 0)
  401.       (copylib (source (tackon "libs" "CManager.library")) (dest wherelibs) (optional "nofail"))  
  402.      )
  403.     )
  404.  
  405.    ;(working #flushing) (run "avail flush > NIL:") (run "avail flush > NIL:") (run "avail flush > NIL:")
  406.  
  407.    ; Run David's flushlib if there - 0=ok , 20=FlushFail
  408.     (if (exists "flushlib")
  409.      (run "flushlib QUIET vapor_#?.library CManager.#?")
  410.     )
  411.    
  412.  
  413.    )
  414.  
  415.   )
  416.  )
  417. )
  418.  
  419. ;********************************************************************
  420. ; Check version of libs resident VS in libs: then note reboot
  421. ;********************************************************************
  422. (if (> (exists "libs") 0)
  423.  (
  424.   (set lib_localdir "Libs:")
  425.  
  426.   (procedure checkversion
  427.    (set vernum1 (getversion (tackon lib_localdir ver_checkfile)))
  428.    (set ver1 (/ vernum1 65536))  (set rev1 (- vernum1 (* ver1 65536) ) )
  429.    (set ver_result (cat ver1 "." rev1))
  430.   )
  431.   (procedure checkversionR
  432.    (set vernum1 (getversion (tackon lib_localdir ver_checkfile) (resident)))
  433.    (set ver1 (/ vernum1 65536))  (set rev1 (- vernum1 (* ver1 65536) ) )
  434.    (set ver_result (cat ver1 "." rev1))
  435.   )
  436.  
  437.   (set ver_checkfile "vapor_toolkit.library") (checkversion) (set toolkit_ver ver_result)
  438.   (set ver_checkfile "vapor_update.library") (checkversion) (set update_ver ver_result)
  439.   (set ver_checkfile "vapor_registration.library") (checkversion) (set reg_ver ver_result)
  440.   (set ver_checkfile "CManager.library") (checkversion) (set cman_ver ver_result)
  441.  
  442.   (if (= toolkit_ver "0.0") (set toolkit_ver "None"))
  443.   (if (= update_ver "0.0") (set update_ver "None"))
  444.   (if (= reg_ver "0.0") (set reg_ver "None"))
  445.   (if (= cman_ver "0.0") (set cman_ver "None"))
  446.  
  447.   (set lib_localdir "")
  448.   (set ver_checkfile "vapor_toolkit.library") (checkversionR) (set toolkit_verR ver_result)
  449.   (set ver_checkfile "vapor_update.library") (checkversionR) (set update_verR ver_result)
  450.   (set ver_checkfile "vapor_registration.library") (checkversionR) (set reg_verR ver_result)
  451.   (set ver_checkfile "CManager.library") (checkversionR) (set cman_verR ver_result)
  452.  
  453.   (if (= toolkit_verR "0.0") (set toolkit_verR "None"))
  454.   (if (= update_verR "0.0") (set update_verR "None"))
  455.   (if (= reg_verR "0.0") (set reg_verR "None"))
  456.   (if (= cman_verR "0.0") (set cman_verR "None"))
  457.  
  458.  
  459.   (set #verchecklib (cat "Vapor Library Version Check\n------------------------------------\n"
  460.                          "vapor_toolkit.library\nIn 'LIBS:' " toolkit_ver " (In memory: " toolkit_verR ")" 
  461.                          "\n\nvapor_update.library\nIn 'LIBS:' " update_ver " (In memory: " update_verR ")" 
  462.                          "\n\nvapor_registration.library\nIn 'LIBS:' " reg_ver " (In memory: " reg_verR ")"
  463.                          "\n\nCManager.library\nIn 'LIBS:' " cman_ver " (In memory: " cman_verR ")"
  464.                     ) 
  465.   )
  466.   
  467.   (set libdiff 0)
  468.   (if (<> toolkit_ver toolkit_verR) (set libdiff 1)) 
  469.   (if (<> update_ver update_verR)   (set libdiff 1))
  470.   (if (<> reg_ver reg_verR)         (set libdiff 1)) 
  471.   (if (<> cman_ver cman_verR)       (set libdiff 1))
  472.  
  473.   (if (= libdiff 1)
  474.    (
  475.     (message #verchecklib)
  476.     (message (cat #libdiff #rebootnote))
  477.    )
  478.   )
  479.  
  480.  )
  481. )
  482.  
  483.  
  484. ;********************************************************************
  485. ; End Bye 
  486. ;********************************************************************
  487. (if (> (exists ("c:multiview")) 0) (set #mpath "c:") )
  488. (if (> (exists ("sys:Utilities/multiview")) 0) (set #mpath "sys:Utilities") )
  489. (run (cat " " #mpath "/multiview README") )
  490. (run (cat "run " #mpath "/multiview VFlash.readme") )
  491.  
  492. (set @default-dest (tackon where "Plugins"))
  493.  
  494. (exit #byebye)
  495.