home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume14 / unidiff / part01 / README < prev    next >
Encoding:
Text File  |  1990-08-30  |  1.8 KB  |  52 lines

  1. The two patches included in this package are in unidiff format, but they are
  2. very easy to apply with the included utilities.
  3.  
  4. The easiest way to get going is to give the included Makefile the once-over
  5. and then type:
  6.  
  7.     make
  8.  
  9. and you'll get a runnable version of unify which is used to translate the
  10. unidiffs into their context diff counterparts (patch.uni into patch.diff,
  11. and gnudiff.uni into gnudiff.diff).  It's all done automatically for you.
  12.  
  13. The other alternative is to:
  14.  
  15.     make unipatch
  16.  
  17. and patch the source to patch with:
  18.  
  19.     unipatch <patch.uni | patch
  20.  
  21. and then apply the gnudiff.uni patch using the same method or the new version
  22. of patch.
  23.  
  24. The file patch.diff expects to find patchlevel 12 of patch, changing the
  25. pachlevel to 12u.  The only added option is -u, which forces a patch to
  26. be interpreted as a unidiff.
  27.  
  28. The file gnudiff.diff expects to find version 1.14 of gnudiff, changing the
  29. version to 1.14u.  The patch adds the following options:
  30.  
  31.   -u    generates a unidiff.
  32.   -P    turns on patch-output mode:
  33.     o  Outputs an "Index: filename" line instead of the ***/--- header
  34.        lines (even for normal and context diffs).  The filename chosen
  35.        is the shorter of the two we're diff'ing, and the characters "./"
  36.        are skipped if present at the start of the name.
  37.     o  Doesn't print "Only in <dir>", "Common subdirectories", or
  38.        "diff <-opts> <file1> <file2>" messages.
  39.     o  Turns on the '=' prefix in a unidiff instead of the (more
  40.        readable) ' ' for lines that are in common.
  41.   -U    same as -uP.
  42.  
  43.   +unidiff  equivilent to 'u'
  44.   +patch    equivilent to 'P'
  45.  
  46. Switches for the unify program are very similar to those for diff, and are
  47. specified in the man page.
  48.  
  49.  \  /| / /|\/ /| /(_)     Wayne Davison
  50. (_)/ |/ /\|/ / |/  \      davison@dri.com
  51.    (W   A  Y   N   e)     ...!uunet!drivax!davison
  52.