home *** CD-ROM | disk | FTP | other *** search
/ The CDPD Public Domain Collection for CDTV 3 / CDPDIII.bin / bbs / ff825.lha / FF825 / ASokoban / InstallLibrary < prev    next >
Text File  |  2001-02-25  |  1KB  |  42 lines

  1. .K ""
  2. echo "This script will install the following library, after first checking"
  3. echo "to see if you already have one installed:"
  4. echo ""
  5. echo "    reqtools.library"
  6. echo ""
  7. echo "If you have one installed, it will check the version number of the"
  8. echo "installed one and ask if you wish to update it."
  9. echo ""
  10.  
  11. FailAt 20
  12.  
  13. ask "Do you wish to continue with the installation? [y/n]"
  14. if not warn
  15.     skip NoInstall
  16. endif
  17.  
  18. if not exists libs:reqtools.library
  19.   echo "No existing reqtools.library, installing version 38.1002..."
  20.   copy libs/reqtools.library libs:reqtools.library
  21. else
  22.   failat 20
  23.   echo "Found " noline
  24.   version reqtools.library 38 1002
  25.   if warn
  26.     ask "Do you wish to update libs:reqtools.library to version 38.1002? [y/n]"
  27.     if warn
  28.       echo "Updating libs:reqtools.library..."
  29.       protect libs:reqtools.library rwed
  30.       copy libs/reqtools.library libs:reqtools.library
  31.     else
  32.       echo "libs:reqtools.library unchanged."
  33.     endif
  34.   else
  35.     echo "The current installed version is up to date."
  36.   endif
  37. endif
  38.  
  39. lab NoInstall
  40. echo "*nAll Done.  Click close gadget to get rid of window."
  41. endcli > nil:
  42.