.K ""
echo "This script will install the following libraries, after first checking"
echo "to see if you already have one installed.  If so, it will check the"
echo "version number of the installed one, and give you the option of"
echo "installing the one found here."
echo ""
echo "	arp.library"
echo "	parm.library"
echo "	req.library"
echo ""

ask "Do you wish to continue with the installation? [y/n]"
if WARN
  echo "Checking arp.library..."
  if not EXISTS libs:arp.library
    echo "No existing library, installing libs:arp.library..."
    copy libs/arp.library libs:arp.library
  else
    echo "The version here is 39.1."
    failat 20
    echo "Your currently installed library version is:"
    version arp.library 39 1
    if WARN
      ask "Do you wish to update libs:arp.library? [y/n]"
      if WARN
        echo "Updating libs:arp.library..."
	protect libs:arp.library rwed
        copy libs/arp.library libs:arp.library
      else
        echo "libs:arp.library unchanged."
      endif
    else
      echo "The current installed version is up to date."
    endif
  endif
  echo ""
  echo "Checking parm.library..."
  if not EXISTS libs:parm.library
    echo "No existing library, installing libs:parm.library..."
    copy libs/parm.library libs:parm.library
  else
    echo "The version here is 4.7."
    failat 20
    echo "Your currently installed library version is:"
    version parm.library 4 7
    if WARN
      ask "Do you wish to update libs:parm.library? [y/n]"
      if WARN
        echo "Updating libs:parm.library..."
	protect libs:parm.library rwed
        copy libs/parm.library libs:parm.library
      else
        echo "libs:parm.library unchanged."
      endif
    else
      echo "The current installed version is up to date."
    endif
  endif
  echo ""
  echo "Checking req.library..."
  if not EXISTS libs:req.library
    echo "No existing library, installing libs:req.library..."
    copy libs/req.library libs:req.library
  else
    echo "The version here is 2.5."
    failat 20
    echo "Your currently installed library version is:"
    version req.library 2 5
    if WARN
      ask "Do you wish to update libs:req.library? [y/n]"
      if WARN
        echo "Updating libs:req.library..."
	protect libs:req.library rwed
        copy libs/req.library libs:req.library
      else
        echo "libs:req.library unchanged."
      endif
    else
      echo "The current installed version is up to date."
    endif
  endif
endif

echo "All Done.  Click close gadget to get rid of window."
endcli
