How to Patch i.e., Inclusion of new files into patch and creation of patch on linux
Programmer who take part in some kind of big code needs to generate
patch files. Begginers do get trouble here as how to create, there is
simpple command on linux diff use that as follows
Suppose u have old code in oldmake folder and new code in home/newmake.
Suppose u have old code in oldmake folder and new code in home/newmake.
Then follow these steps.
1. cd home
2. diff -urN /home/waste/oldmake newmake > patch1
Now
you might have written some new file instead of modifying any file.
There is no need to worry diff is already taken care of that stuff, your
patch includes those files.
How to use patch
if you want to apply patch inside /home/checkmake then go to checkmake folder
How to use patch
if you want to apply patch inside /home/checkmake then go to checkmake folder
1. cd /home/checkmake
2. patch -p patch1
No comments:
Post a Comment