.K ""
echo "This script will install the intuisup library, 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 ""

ask "Do you wish to continue with the installation? [y/n]"
if WARN
  if not EXISTS libs:intuisup.library
    echo "No existing library, installing libs:intuisup.library..."
    protect libs:intuisup.library rwed
    copy library/intuisup.library libs:intuisup.library
  else
    echo "The version here is 4.5."
    failat 20
    echo "Your currently installed library version is:"
    version intuisup.library 4 5
    if WARN
      ask "Do you wish to update libs:intuisup.library? [y/n]"
      if WARN
        echo "Updating libs:intuisup.library..."
	protect libs:intuisup.library rwed
        copy library/intuisup.library libs:intuisup.library
      else
        echo "libs:intuisup.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
