home *** CD-ROM | disk | FTP | other *** search
/ The Best of Mecomp Multimedia 2 / MECOMP-CD-II.iso / amiga / programmieren / misc / babelfix / installlibpatch < prev    next >
Encoding:
Text File  |  1997-11-05  |  1.1 KB  |  44 lines

  1. ;
  2. ; Installs the 68060.library patches to make Ralph Babel's
  3. ; library enforcer compatible.
  4. ;
  5. ;
  6. if not exists libs:68060.library
  7.   echo "Could not find 68060.library in LIBS:"
  8. endif
  9.  
  10. delete >NIL: ram:68060.library force quiet
  11.  
  12. version 68060.library version 2 revision 3
  13. if not warn
  14.   echo "Sorry, don't know this 68060.library version"
  15.   quit
  16. else
  17.   version 68060.library version 2 revision 1
  18.   if warn
  19.     echo "Sorry, don't know this 68060.library version"
  20.     quit
  21.   else
  22.     version 68060.library version 2 revision 2
  23.     if warn
  24.       echo "Patching library version 2.1"
  25.       spatch -oram:68060.library -p68060_2_1.pch libs:68060.library
  26.     else
  27.       echo "Patching library version 2.2"
  28.       spatch -oram:68060.library -p68060_2_2.pch libs:68060.library
  29.     endif
  30.   endif
  31. endif
  32.  
  33. if exists ram:68060.library
  34.   echo "Saving original version to LIBS:68060.library.orig"
  35.   copy clone libs:68060.library libs:68060.library.orig
  36.  
  37.   echo "Installing patched library now"
  38.   delete >NIL: libs:68060.library force quiet
  39.   copy clone ram:68060.library libs:
  40.  
  41.   echo "PLEASE REBOOT TO USE THE PATCHED LIBRARY!"
  42. endif
  43.  
  44.