Cygwin
Last modified: April 23, 2009 - 04:45
Here are some steps to use Cygwin for patching in Windows. There is a videocast on Installing Cygwin on Windows XP that covers installing Cygwin but not actually using it. For applying patches from command line there is another videocast Applying Patches to Drupal Core.
Assumptions
- cygwin is installed at c:\cygwin
- the patch is at c:\mypatch.patch
- The drupal installation is at c:\drupal
- Start a cmd window
- cd c:\drupal
- c:\cygwin\bin\patch.exe -p0 < c:\mypatch.patch
After the patch is applied check for it saying that hunks failed. If it does it will create a reject(.rej) file where you can look at what has failed.
If there are no errors or it only states there are offsets then your patch has been applied successfully.
