home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / sun / misc / 4106 < prev    next >
Encoding:
Text File  |  1992-09-08  |  2.0 KB  |  57 lines

  1. Newsgroups: comp.sys.sun.misc
  2. Path: sparky!uunet!wupost!monsanto.com!albert.monsanto.com!nghoff
  3. From: nghoff@albert.monsanto.com (Norman G. Hoffman)
  4. Subject: HELP: Applying patches to software from FTP archives
  5. Message-ID: <1992Sep5.225712.7903@tin.monsanto.com>
  6. Sender: news@tin.monsanto.com (USENET News System)
  7. Organization: Monsanto Company
  8. X-Newsreader: Tin 1.1 PL5
  9. Distribution: na
  10. Date: Sat, 5 Sep 1992 22:57:12 GMT
  11. Lines: 44
  12.  
  13. I've downloaded a utility (mmv) from an anonymous FTP site.
  14. Along with the source files (mmv.c.{1,2}) there is a patch file, 
  15. mmv.patch1.  Do I have to apply this patch by hand?
  16.  
  17. The patch file appears to consist of "diff -c" output.
  18. Here's an excerpt:
  19.  
  20. > The two major bugs fixed are:
  21. > 1) in its BSD reincarnation, whenever a file had to be moved between devices
  22. > (by copying, then deleting), mmv 1.0 made a symbolic link to "/" instead
  23. > of copying the file. It still deleted the original, though. Oops!
  24. > 2) the uppercase/lowercase conversion feature did not work.
  25. > Vladimir Lanin
  26. > ---cut here---
  27. > ***************
  28. > *** 1,5 ****
  29. >   /*
  30. > !     mmv 1.0
  31. >       Copyright (c) 1990 Vladimir Lanin.
  32. >       This program may be freely used and copied on a non-commercial basis.
  33. >       The author assumes no responsibility for any damage or data loss that may
  34. > --- 1,5 ----
  35. >   /*
  36. > !     mmv 1.01b
  37. >       Copyright (c) 1990 Vladimir Lanin.
  38. >       This program may be freely used and copied on a non-commercial basis.
  39. >       The author assumes no responsibility for any damage or data loss that may
  40. > ***************
  41.  
  42. "diff -e" output would have allowed me to apply the patch by 
  43. running it through the ed editor, as documented in the diff man page.  
  44. Is "diff -c" a standard way of supplying source patches on FTP archives?
  45.  
  46. Surely I don't have to do this by hand.  Is there an automated way 
  47. to apply the patch?  The "cut here" line leads me to believe there is.
  48.  
  49. I don't think it matters, but I'm on a Sparc 1+ running 
  50. SunOS 4.1.1 and Openwindows 3.0.
  51.  
  52. Thanks,
  53.  
  54. nghoff@bb1t.monsanto.com
  55.