Discussion:
patch command
(too old to reply)
Samit Gupta
2005-02-28 21:37:23 UTC
Permalink
I have a couple of questions about the patch command. How is
running patch any different from just copying the versions of
files from the project 2 solution over those same files in the
project 3 directory? I'm also confused as per what the command
syntax for patch should be for our purposes. Thanks.

Samit
Iulian Neamtiu
2005-03-01 21:59:28 UTC
Permalink
I've changed the instructiuons on the webpage. See the
'Incorporating your project 2 sources' section in
http://www.cs.umd.edu/class/spring2005/cmsc412/proj3/

Iulian
Post by Samit Gupta
I have a couple of questions about the patch command. How is
running patch any different from just copying the versions of
files from the project 2 solution over those same files in the
project 3 directory? I'm also confused as per what the command
syntax for patch should be for our purposes. Thanks.
Samit
c***@CSIC.UMD.EDU
2005-03-02 16:34:22 UTC
Permalink
the commands on the website didn't work. i managed to get them working with this:

$ cd ~/project2/src/geekos
$ diff -u -r . ~/project3/src/geekos > ~/diff.patch
$ cd ~/project3/src/geekos
$ patch -p0 < ~/diff.patch
$ rm *orig

NOTE: i don't have the P2-solution "yet" so i had to use my implementation.
Continue reading on narkive:
Loading...