PDA

View Full Version : How to apply a patch on *nix



dexterkris
01-01-10, 10:02 PM
This guide shows you how to apply a patch to a source code on *nix(Linux, Unix, whatever...).

Requirements:
*nix
Subversion(SVN)

Step 1:
Move the patch file that you want to apply to your source into
the folder containing the source.

Step 2:
Open your terminal and navigate into the folder containing
the source code.

Example:
http://i844.photobucket.com/albums/ab9/dexterkris/Picture3.png?t=1261347159

Step 3:
Type this into your terminal:

patch -p0 -i FileName Replace the red text with the filename of the patch^

Here is an example, the filename of the patch I'm using is "patch.patch":
http://i844.photobucket.com/albums/ab9/dexterkris/Picture1-1.png?t=1261346772

Step 4: Order pizza and celebrate?