home *** CD-ROM | disk | FTP | other *** search
/ Da Capo / da_capo_vol1.bin / programs / amiga / edit / octamedv2 / programmers / playerlibraries / install_libraries next >
Text File  |  1993-03-13  |  2KB  |  64 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:"
  4. echo ""
  5. echo "    octaplayer.library  (version 2.0)"
  6. echo "    medplayer.library  (version 2.0)"
  7. echo ""
  8. echo "If you have one installed, it will check the version number of the"
  9. echo "installed one and ask if you wish to update it."
  10. echo ""
  11.  
  12. FailAt 20
  13.  
  14. ask "Do you wish to continue with the installation? [y/n]"
  15. if not warn
  16.     skip NoInstall
  17. endif
  18.  
  19. if not exists libs:octaplayer.library
  20.   echo "No existing octaplayer.library, installing version 2.0..."
  21.   copy octaplayer.library libs:octaplayer.library
  22. else
  23.   failat 20
  24.   echo "Found " noline
  25.   version octaplayer.library 2 0
  26.   if warn
  27.     ask "Do you wish to update libs:octaplayer.library to version 2.0? [y/n]"
  28.     if warn
  29.       echo "Updating libs:octaplayer.library..."
  30.       protect libs:octaplayer.library rwed
  31.       copy octaplayer.library libs:octaplayer.library
  32.     else
  33.       echo "libs:octaplayer.library unchanged."
  34.     endif
  35.   else
  36.     echo "The current installed version is up to date."
  37.   endif
  38. endif
  39.  
  40. if not exists libs:medplayer.library
  41.   echo "No existing medplayer.library, installing version 2.0..."
  42.   copy medplayer.library libs:medplayer.library
  43. else
  44.   failat 20
  45.   echo "Found " noline
  46.   version medplayer.library 2 0
  47.   if warn
  48.     ask "Do you wish to update libs:medplayer.library to version 2.0? [y/n]"
  49.     if warn
  50.       echo "Updating libs:medplayer.library..."
  51.       protect libs:medplayer.library rwed
  52.       copy medplayer.library libs:medplayer.library
  53.     else
  54.       echo "libs:medplayer.library unchanged."
  55.     endif
  56.   else
  57.     echo "The current installed version is up to date."
  58.   endif
  59. endif
  60.  
  61. lab NoInstall
  62. echo "*nAll Done.  Click close gadget to get rid of window."
  63. endcli > nil:
  64.