Creating a patch file
To create a patch file on one file run:diff -u <original file> <altered file> > patch.diff
If you need to use it on a whole directory run this:
diff -ruN <original dir> <altered dir> > patch.diff
To run the above commands you will need the original files/directory so your altered source can be compared against it.
Last updated: 11/07/2005