home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / linux / 9333 < prev    next >
Encoding:
Internet Message Format  |  1992-08-29  |  1.1 KB

  1. Path: sparky!uunet!mcsun!fuug!news.funet.fi!hydra!klaava!wirzeniu
  2. From: wirzeniu@klaava.Helsinki.FI (Lars Wirzenius)
  3. Newsgroups: comp.os.linux
  4. Subject: Re: Using patch
  5. Message-ID: <1992Aug29.102118.16754@klaava.Helsinki.FI>
  6. Date: 29 Aug 92 10:21:18 GMT
  7. References: <1992Aug29.032618.21762@athena.mit.edu>
  8. Organization: University of Helsinki
  9. Lines: 26
  10.  
  11. hammond@kwhpc.caseng.com (Kevin W. Hammond) writes:
  12. >I applied patch 1 to 0.97 this morning, but had to manually answer Yes to each
  13. >file it desired to patch.  Is there a way for patch to do this automatically?
  14. >
  15. >The command I used was:
  16. >
  17. >    patch < patch1
  18. >
  19. >I was in the /usr/src/linux directory.
  20.  
  21. You should be in the /usr/src directory.  My personal preference is to
  22. use:
  23.  
  24.     patch -s < patch1 2>&1 | tee patch.out
  25.  
  26. -s (s = silent) says there isn't as much noise, and the tee thing lets
  27. me look at the output later, if need be.  Also, I usually do
  28.  
  29.     find /usr/src/linux -name '*~' -print | xargs rm
  30.  
  31. to get rid of the backup files patch created.
  32.  
  33. (How did I learn all those tricks?  I RTFM. :)
  34.  
  35. --
  36. Lars.Wirzenius@helsinki.fi
  37.