home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d5xx / d573 / mathplot.lha / MathPlot / InstallLibrary < prev    next >
Text File  |  1991-12-22  |  2KB  |  56 lines

  1. .K ""
  2. echo "This script will install the following libraries, after first"
  3. echo "checking to see if you already have one installed.  If so, it"
  4. echo "will check the version numbers of the installed one, and the one"
  5. echo "in this directory, and give you the option of installing the one"
  6. echo "found here."
  7. echo ""
  8. echo "        libs/ilbm.library    =>    libs:"
  9. echo "        libs/mtool.library    =>    libs:"
  10. echo ""
  11.  
  12. ask "Do you wish to continue with the installation of ilbm.library? [y/n]"
  13. if WARN
  14.     if not EXISTS libs:ilbm.library
  15.         echo "No existing library, installing libs:ilbm.library..."
  16.         copy libs/ilbm.library libs:ilbm.library
  17.     else
  18.         echo "Examine the version numbers of each library."
  19.         echo ""
  20.         version libs:ilbm.library
  21.         version libs/ilbm.library
  22.         echo ""
  23.         ask "Do you wish to overwrite libs:ilbm.library? [y/n]"
  24.         if WARN
  25.             echo "Updating libs:ilbm.library..."
  26.             copy libs/ilbm.library libs:ilbm.library
  27.         else
  28.             echo "libs:ilbm.library unchanged..."
  29.         endif
  30.     endif
  31. endif
  32.  
  33. ask "Do you wish to continue with the installation of mtool.library? [y/n]"
  34. if WARN
  35.     if not EXISTS libs:mtool.library
  36.         echo "No existing library, installing libs:mtool.library..."
  37.         copy libs/mtool.library libs:mtool.library
  38.     else
  39.         echo "Examine the version numbers of each library."
  40.         echo ""
  41.         version libs:mtool.library
  42.         version libs/mtool.library
  43.         echo ""
  44.         ask "Do you wish to overwrite libs:mtool.library? [y/n]"
  45.         if WARN
  46.             echo "Updating libs:mtool.library..."
  47.             copy libs/mtool.library libs:mtool.library
  48.         else
  49.             echo "libs:mtool.library unchanged..."
  50.         endif
  51.     endif
  52. endif
  53.  
  54. echo "All Done.  Click close gadget to get rid of window."
  55. endcli
  56.