Blame doc/HOWTO.PATCH

Packit 5e46da
=================================
Packit 5e46da
HOW TO CREATE (AND APPLY) A PATCH
Packit 5e46da
=================================
Packit 5e46da
Packit 5e46da
Creating a patch is easy!
Packit 5e46da
Packit 5e46da
1. Make sure you have two CLEAN copies of the directory that you want to patch, e.g. libbluray.orig/ and libbluray.new/
Packit 5e46da
Packit 5e46da
2. Make your changes in libbluray.new/ (make sure that you ONLY make changes that you want to be included in the patch)
Packit 5e46da
Packit 5e46da
3. Create the patch from the parent directory as follows:
Packit 5e46da
Packit 5e46da
	diff -rupN libbluray.orig/ libbluray.new/ > libbluray.patch
Packit 5e46da
Packit 5e46da
4. You now have a patch called 'libbluray.patch'.
Packit 5e46da
Packit 5e46da
5. To apply the patch, change to the clean source directory that you want to patch (e.g. libbluray.clean/), and run:
Packit 5e46da
Packit 5e46da
	patch -p1 < libbluray.patch
Packit 5e46da