home *** CD-ROM | disk | FTP | other *** search
/ Creative Computers / CreativeComputers.iso / shareware / fractals / treegrow / installlibrary next >
Text File  |  1994-11-17  |  2KB  |  64 lines

  1. .K ""
  2. echo "This script will install the following libraries, after first checking"
  3. echo "to see if you already have one installed:"
  4. echo ""
  5. echo "    ilbm.library"
  6. echo "    req.library"
  7. echo ""
  8. echo "If you have one installed, it will check the version number of the"
  9. echo "installed one and ask if you wish to update it."
  10. echo ""
  11.  
  12. FailAt 20
  13.  
  14. ask "Do you wish to continue with the installation? [y/n]"
  15. if not warn
  16.     skip NoInstall
  17. endif
  18.  
  19. if not exists libs:req.library
  20.   echo "No existing req.library, installing version 2.5..."
  21.   copy libs/req.library libs:req.library
  22. else
  23.   failat 20
  24.   echo "Found " noline
  25.   version req.library 2 5
  26.   if warn
  27.     ask "Do you wish to update libs:req.library to version 2.5? [y/n]"
  28.     if warn
  29.       echo "Updating libs:req.library..."
  30.       protect libs:req.library rwed
  31.       copy libs/req.library libs:req.library
  32.     else
  33.       echo "libs:req.library unchanged."
  34.     endif
  35.   else
  36.     echo "The current installed version is up to date."
  37.   endif
  38. endif
  39.  
  40. if not exists libs:ilbm.library
  41.   echo "No existing ilbm.library, installing version 0.5 ..."
  42.   copy libs/ilbm.library libs:ilbm.library
  43. else
  44.   failat 20
  45.   echo "Found " noline
  46.   version ilbm.library 0 -1
  47.   if warn
  48.     ask "Do you wish to update libs:ilbm.library to version 0.5? [y/n]"
  49.     if warn
  50.       echo "Updating libs:ilbm.library..."
  51.       protect libs:ilbm.library rwed
  52.       copy libs/ilbm.library libs:ilbm.library
  53.     else
  54.       echo "libs:ilbm.library unchanged."
  55.     endif
  56.   else
  57.     echo "The current installed version is up to date."
  58.   endif
  59. endif
  60.  
  61. lab NoInstall
  62. echo "*nAll Done.  Click close gadget to get rid of window."
  63. endcli > nil:
  64.