VTK/Boneyard/Applying a patch

From KitwarePublic
Revision as of 13:47, 12 August 2010 by Daviddoria (talk | contribs) (moved Applying a patch to VTK/Boneyard/Applying a patch)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

If you have a patch file, put it in the same directory as the file you wish to patch. Then to ``fix File1 to look like File2 (the file that the patch was created from):

patch File1 < patch.txt

If the patch is of an entire folder:

To ``fix Folder1 to look like Folder2, cd into Folder1 and run

patch -p1 < ../patch.txt