How to make and apply patches

From Wikifications
Revision as of 19:40, 30 June 2007 by Dre (Talk | contribs) (page created)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Once you have the needed changes, apply them (pre autoconf) to a copy of a fresh source directory. You should now have a 'patched' directory sitting alongside an unpatched direcetory. Now generate the patch...

diff -ruN old new > my_patch

To apply this patch to a fresh source directory, place the patch alongside the source dir:

patch -p0 < my_patch