home *** CD-ROM | disk | FTP | other *** search
/ Amiga Elysian Archive / AmigaElysianArchive.iso / prog / c / hardbloc.lha / HardBlocks / InstallLibrary < prev    next >
Text File  |  1992-08-04  |  1KB  |  35 lines

  1. .K ""
  2. echo "This script will install the hardblocks library, 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.  
  8. ask "Do you wish to continue with the installation? [y/n]"
  9. if WARN
  10.   if not EXISTS libs:hardblocks.library
  11.     echo "No existing library, installing libs:hardblocks.library..."
  12.     copy libs/hardblocks.library libs:hardblocks.library
  13.   else
  14.     echo "The version here is 1.2."
  15.     failat 20
  16.     echo "Your currently installed library version is:"
  17.     version hardblocks.library 1 2
  18.     if WARN
  19.       ask "Do you wish to update libs:hardblocks.library? [y/n]"
  20.       if WARN
  21.         echo "Updating libs:hardblocks.library..."
  22.     protect libs:hardblocks.library rwed
  23.         copy libs/hardblocks.library libs:hardblocks.library
  24.       else
  25.         echo "libs:hardblocks.library unchanged."
  26.       endif
  27.     else
  28.       echo "The current installed version is up to date."
  29.     endif
  30.   endif
  31. endif
  32.  
  33. echo "All Done.  Click close gadget to get rid of window."
  34. endcli
  35.