home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / utilit~1 / patch.zoo / patch / read.me < prev   
Encoding:
Text File  |  1993-02-07  |  1.9 KB  |  37 lines

  1. Hi all,
  2. this is a port of patch-2.0.12g8 (GNU version 12.8 of patch 2.0)
  3.  
  4. It was compiled with gcc 2.3.1 and the mintlibs pl 26, using the
  5. -mbaserel and -mpcrel options, so it should be sharable under MiNT.
  6. (Not that you'd be likely to use two patches simultaneously...)
  7.  
  8. This is the second port of patch I made in two weeks. The reason for this
  9. is that the CR / CR+LF bug bit me. If a file was in MS-DOS format and the
  10. patch in Unix format (or the other way round), patch would refuse to work,
  11. as the files did not match. While patch could be forced to work by using
  12. the -l option (ignore all whitespace differences), the resulting file
  13. would be in mixed MS-DOS and Unix format. Pure-C hates this, gcc ignores
  14. this kind of stuff. Editors often complain.
  15.  
  16. Basically, there are two solutions to this problem:
  17. - Force the files and the patch to be in the same format.
  18.   This is what I do when patch complains; I don't use the -l option.
  19.   In this case, you should use the normal version of patch, 'patch.ttp'.
  20. - Change patch to ignore such input differences and write out files
  21.   in either MS-DOS or UNIX format, according to your UNIXMODE environment
  22.   variable. As patch normally reads long chunks of file in binary mode,
  23.   this would be hard to fix. I took advantage of another option: patch
  24.   resorts to what it calls 'plan B' when files are too long, and reads
  25.   all files line by line, using fgets() and fputs(). So I forced patch
  26.   to always use plan B, even though this is somewhat slower and forces
  27.   the use of temporary files.
  28.   If you won't unx2dos your files, you should use the 'plan B' version
  29.   of patch, 'bpatch.ttp'.
  30.  
  31. The file `patch.man' is a manual page for the patch command. A full manual
  32. for patch, diff and cmp is available with the diff 2.1 package.
  33.  
  34. Bug-reports, comments, thanks or flames to:
  35. Hildo Biersma
  36. boender@dutiws.twi.tudelft.nl
  37.