home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / misc / 4226 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  2.0 KB

  1. Xref: sparky comp.unix.misc:4226 comp.unix.wizards:4756
  2. Newsgroups: comp.unix.misc,comp.unix.wizards
  3. Path: sparky!uunet!spillman!tye
  4. From: tye@spillman.uucp (E. Tye McQueen)
  5. Subject: Programs to create and apply binary patches?
  6. Message-ID: <1992Nov17.194826.26531@spillman.uucp>
  7. Date: Tue, 17 Nov 1992 19:48:26 GMT
  8. Organization: Spillman Data Systems
  9. Followup-To: comp.unix.misc
  10. Lines: 36
  11.  
  12. [Follow-ups to comp.unix.misc]
  13.  
  14. Any great ideas on how to create a "patch" file of differences between
  15. two versions of a very large *binary* file (executable) so the patch
  16. file could be distributed (via modem) and applied to the many copies
  17. of the old version of the file?
  18.  
  19. What I thinking of are two programs:
  20.     A good differences program that is not line-oriented.
  21.     A good batch editor that is not line-oriented.
  22.  
  23. Several of us here have seen such beasts before but none of us can
  24. find a nice Unix solution.  Any help would be greatly appreciated.
  25.  
  26. I'm considering converting the binary file to be "line-oriented".  But
  27. it is tricky to put the line breaks so that insertions and deletions of
  28. code do not cause the difference engine to decide the entire remainder
  29. of the files are different.
  30.  
  31. One scheme is to select a byte value that appears with some fairly
  32. reqular frequency in the executable and transpose that value and
  33. newline.  The hard part is finding an apporpriate value (if one even
  34. exists).
  35.  
  36. But I suspect that there is Unix-capatible source code for non-line-
  37. oriented differences and batch editing programs if I just knew where
  38. to look.  I tried "archie" but that works best if you already know
  39. the name of what you are looking for.  Checking for things containing
  40. "dif" or "patch" doesn't seem to find anything but differences and
  41. patches of other packages.
  42.  
  43. Thanks,
  44.  tye@spillman.com                         Tye McQueen, E.
  45. ----------------------------------------------------------
  46.  Nothing is obvious unless you are overlooking something. 
  47. ----------------------------------------------------------
  48.