[dev] patching

Jan Schneider jan at horde.org
Fri May 14 10:54:39 PDT 2004


Zitat von Etienne Goyer <etienne.goyer at linuxquebec.com>:

> Content-Type: text/plain; charset=us-ascii; format=flowed
> Content-Transfer-Encoding: 7bit
>
> Ben Chavet wrote:
>> I apologize if this is off-topic...
>>
>> When a patch comes in, how do you apply it?  I've tried "patch original-file
>> patch-file" and "patch -u original-file patch-file".  Sometimes it 
>> works, but
>> usually it doesn't.  Am I missing something?  Can somebody give me 
>> some tips?
>
> Usually, you would do :
>
>      patch -p0 < patchfile
>
> You do not have to specify the file to be patched (it's in the patch).
> Depending on how the patch was produced, you might have to specify "-p1"
> instead.

Or

   patch file_to_patch < patchfile

if it is only one file to patch.

Jan.

--
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/


More information about the dev mailing list