VTK/Boneyard/Applying a patch: Difference between revisions
From KitwarePublic
< VTK
Jump to navigationJump to search
Daviddoria (talk | contribs) (New page: 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): <source lang="tex...) |
Daviddoria (talk | contribs) No edit summary |
||
Line 2: | Line 2: | ||
<source lang="text"> | <source lang="text"> | ||
patch File1 < patch.txt | patch File1 < patch.txt | ||
</source> | |||
If the patch is of an entire folder: | |||
To ``fix'' Folder1 to look like Folder2, cd into Folder1 and run | |||
<source lang="text"> | |||
patch -p1 < ../patch.txt | |||
</source> | </source> |
Revision as of 13:50, 20 October 2009
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): <source lang="text"> patch File1 < patch.txt </source>
If the patch is of an entire folder:
To ``fix Folder1 to look like Folder2, cd into Folder1 and run <source lang="text"> patch -p1 < ../patch.txt </source>