LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   patch file (https://www.linuxquestions.org/questions/programming-9/patch-file-20932/)

udayan 05-14-2002 10:03 AM

patch file
 
hi,
how do i make a patch file. Where do i get info about this

crabboy 05-14-2002 04:19 PM

It's pretty standard to use the diff command.
Code:

diff -C3 file.c.old file.c.new > patchfile
To update the old file:
Code:

patch file.c.old < patchfile
The .old file will match the .new file exactly. Diff and patch will also work on directories.

udayan 05-15-2002 09:03 AM

well i made a new kernel image and have made changes in many files in the source code. I have the original source code also. But i gotta make a patch file and then try to implement it.

I tried this -
diff -druP /home/myname/origcode /usr/src/linux >patch

now how do i use this patch file to implement my changes in some original code.
thanx in advance


All times are GMT -5. The time now is 12:35 PM.