home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d6xx / d649 / support.lha / Support / InstallLibs next >
Text File  |  1992-04-27  |  3KB  |  86 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.  If so, it will check the"
  4. echo "version number of the installed one, and give you the option of"
  5. echo "installing the one found here."
  6. echo ""
  7. echo "    arp.library"
  8. echo "    parm.library"
  9. echo "    req.library"
  10. echo ""
  11.  
  12. ask "Do you wish to continue with the installation? [y/n]"
  13. if WARN
  14.   echo "Checking arp.library..."
  15.   if not EXISTS libs:arp.library
  16.     echo "No existing library, installing libs:arp.library..."
  17.     copy libs/arp.library libs:arp.library
  18.   else
  19.     echo "The version here is 39.1."
  20.     failat 20
  21.     echo "Your currently installed library version is:"
  22.     version arp.library 39 1
  23.     if WARN
  24.       ask "Do you wish to update libs:arp.library? [y/n]"
  25.       if WARN
  26.         echo "Updating libs:arp.library..."
  27.     protect libs:arp.library rwed
  28.         copy libs/arp.library libs:arp.library
  29.       else
  30.         echo "libs:arp.library unchanged."
  31.       endif
  32.     else
  33.       echo "The current installed version is up to date."
  34.     endif
  35.   endif
  36.   echo ""
  37.   echo "Checking parm.library..."
  38.   if not EXISTS libs:parm.library
  39.     echo "No existing library, installing libs:parm.library..."
  40.     copy libs/parm.library libs:parm.library
  41.   else
  42.     echo "The version here is 4.7."
  43.     failat 20
  44.     echo "Your currently installed library version is:"
  45.     version parm.library 4 7
  46.     if WARN
  47.       ask "Do you wish to update libs:parm.library? [y/n]"
  48.       if WARN
  49.         echo "Updating libs:parm.library..."
  50.     protect libs:parm.library rwed
  51.         copy libs/parm.library libs:parm.library
  52.       else
  53.         echo "libs:parm.library unchanged."
  54.       endif
  55.     else
  56.       echo "The current installed version is up to date."
  57.     endif
  58.   endif
  59.   echo ""
  60.   echo "Checking req.library..."
  61.   if not EXISTS libs:req.library
  62.     echo "No existing library, installing libs:req.library..."
  63.     copy libs/req.library libs:req.library
  64.   else
  65.     echo "The version here is 2.5."
  66.     failat 20
  67.     echo "Your currently installed library version is:"
  68.     version req.library 2 5
  69.     if WARN
  70.       ask "Do you wish to update libs:req.library? [y/n]"
  71.       if WARN
  72.         echo "Updating libs:req.library..."
  73.     protect libs:req.library rwed
  74.         copy libs/req.library libs:req.library
  75.       else
  76.         echo "libs:req.library unchanged."
  77.       endif
  78.     else
  79.       echo "The current installed version is up to date."
  80.     endif
  81.   endif
  82. endif
  83.  
  84. echo "All Done.  Click close gadget to get rid of window."
  85. endcli
  86.