home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / amiga / utility / misc / pw322324.lzh / Patch_Script < prev    next >
Text File  |  1992-05-21  |  2KB  |  53 lines

  1. Echo "ProWrite 3.2.2UK to 3.2.4UK patch script"
  2. Echo "written by Mark Thomas"
  3. Echo "*NCopyright 1992 New Horizons Software, Inc."
  4. Echo "The new file created by this patch"
  5. Echo "is covered by the same licensing agreement"
  6. Echo "as the old program from which the patched"
  7. Echo "file is being made."
  8. Echo "*N Checking for ProWrite program..."
  9. If NOT EXISTS ProWrite
  10.    Echo " The ProWrite program does not appear"
  11.    Echo " to be in this directory.  Please read"
  12.    Echo " the file PW_Patch_Readme for further"
  13.    Echo " instructions."
  14.    Skip cleanup
  15. Else
  16.    Echo " Found ProWrite."
  17. Endif
  18. Echo " Checking ProWrite version..." NOLINE
  19. List >T:pw.ver ProWrite
  20. Search >NIL: T:pw.ver 290252
  21. If WARN
  22.    Search >NIL: T:pw.ver 292000
  23.    If WARN
  24.       Search >NIL: T:pw.ver 292452
  25.       If WARN
  26.          Echo "*N This ProWrite may not be version 3.2.2UK,*N or 3.2.3UK."
  27.          Echo " This may be the result of using a file packer program."
  28.          Echo " You may try applying the patch to the original file."
  29.          Echo "*NContact New Horizons Software, Inc."
  30.          Echo "for further assistance."
  31.          Echo "(512)328-6650"
  32.       Else
  33.          Echo "3.2.4UK*N This ProWrite file is already version 3.2.4UK."
  34.       Endif
  35.    Else
  36.       Echo "3.2.3UK*N This patch will not work on your program."
  37.       Echo " You need to use the 3.2.3UK to 3.2.4UK patch archive."
  38.    Endif
  39. Else
  40.    Echo "3.2.2UK*N Renaming the old ProWrite..."
  41.    Rename >NIL: ProWrite ProWrite.old
  42.    Echo " Patching ProWrite 3.2.2UK..."
  43.    Lpatch >NIL: -oProWrite -pPW322-324UK.pch ProWrite.old
  44.    Echo " Removing old version of ProWrite file..."
  45.    Delete >NIL: ProWrite.old
  46. EndIf
  47.  
  48. LAB cleanup
  49. Echo "*N Cleaning up..."
  50. Delete >NIL: T:pw.ver
  51. Echo " Finished."
  52. Wait 10
  53. Endcli