Let's suppose you have an old version of a file, say file.txt, and a newer, stored in file.txt.updated. To create a patch named my-file.patch
that, applied to file.txt, changes its content so that it is the same as the one of file.txt.updated, one can use:
|
It generates in my-file.patch a text like:
|
Let's suppose you have an old version of a file, say in file.txt, and a patch named my-file.patch that, applied to file.txt, updates its content. One just has to enter in the same directory:
|
No need to specify any filename, since all the necessary informations are already stored in the patch file.
For more informations, use: man patch.
If you have information more detailed or more recent than those presented in this document, if you noticed errors, neglects or points insufficiently discussed, drop us a line!