home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / amiga / utility / misc / p323324p.lzh / Patch_Script < prev    next >
Encoding:
Text File  |  1992-05-08  |  3.3 KB  |  99 lines

  1. Echo "ProWrite 3.2.3 to 3.2.4 patch script"
  2. Echo "by Mark Thomas"
  3. Echo "*NCopyright 1992 New Horizons Software, Inc."
  4. Echo "The new files created by this patch"
  5. Echo "are covered by the same licensing agreement"
  6. Echo "as the old programs from which the patches"
  7. Echo "are 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 291996
  21. If WARN
  22.    Search >NIL: T:pw.ver 289640
  23.    If WARN
  24.       Search >NIL: T:pw.ver 290212
  25.       If WARN
  26.          Search >NIL: T:pw.ver 287956
  27.          If WARN
  28.             Search >NIL: T:pw.ver 292448
  29.             If WARN
  30.                Echo "*N This ProWrite may not be version 3.2, 3.2.1,*N 3.2.2, or 3.2.3."
  31.                Echo " This may be a result of using a file packer program."
  32.                Echo "*NContact New Horizons Software, Inc."
  33.                Echo "for further assistance."
  34.                Echo "(512)328-6650"
  35.                Quit
  36.             Else
  37.                Echo "3.2.4*N This ProWrite file is already version 3.2.4."
  38.             Endif
  39.          Else
  40.             Echo "3.2*N This patch will not work on your program."
  41.             Echo " You need to use the 3.2 to 3.2.3 patch archive"
  42.             Echo " and then use this patch archive."
  43.          Endif
  44.       Else
  45.          Echo "3.2.2*N This patch will not work on your program."
  46.          Echo " You need to use the 3.2.2 to 3.2.3 patch archive"
  47.          Echo " and then use this patch archive."
  48.       Endif
  49.    Else
  50.       Echo "3.2.1*N This patch will not work on your program."
  51.       Echo " You need to use the 3.2.1 to 3.2.3 patch archive"
  52.       Echo " and then use this patch archive."
  53.    Endif
  54. Else
  55.    Echo "3.2.3*N Renaming the old ProWrite..."
  56.    Rename >NIL: ProWrite ProWrite.old
  57.    Echo " Patching ProWrite 3.2.3..."
  58.    Lpatch >NIL: -oProWrite -pPW323-324.pch ProWrite.old
  59.    Echo " Removing old version of ProWrite file..."
  60.    Delete >NIL: ProWrite.old
  61. EndIf
  62.  
  63. Echo "*N Checking for PosctScript Prep file..."
  64. If NOT EXISTS "PostScript Prep"
  65.    Echo " The PostScript Prep file cannot be found."
  66.    Echo " Quitting."
  67.    Skip cleanup
  68. Else
  69.    Echo " Found PostScript Prep."
  70. Endif
  71. Echo " Checking version of PostScript Prep file..." NOLINE
  72. List >T:pw.ver "PostScript Prep"
  73. Search >NIL: T:pw.ver 4037
  74. If WARN
  75.    Search >NIL: T:pw.ver 4501
  76.    If WARN
  77.       Echo "*NThis PostScript Prep file may not be"
  78.       Echo "a valid version."
  79.       Echo "*NContact New Horizons Software, Inc."
  80.       Echo "for further assistance if you have problems."
  81.       Echo "(512)328-6650"
  82.    Else
  83.       Echo "3.2.4*N This PostScript Prep file is already the 3.2.4 version."
  84.    Endif
  85. Else
  86.    Echo "3.2*N Renaming the old PostScript Prep..."
  87.    Rename >NIL: "PostScript Prep" "PostScript Prep.old"
  88.    Echo " Patching PostScript Prep..."
  89.    Lpatch >NIL: "-oPostScript Prep" -pPostScript_Prep.pch "PostScript Prep.old"
  90.    Echo " Removing old version of PostScript Prep file..."
  91.    Delete >NIL: "PostScript Prep.old"
  92. Endif
  93.  
  94. LAB cleanup
  95. Echo "*N Cleaning up..."
  96. Delete >NIL: T:pw.ver
  97. Echo " Finished."
  98. Wait 10
  99. Endcli