Author Topic: HTML patch 2007-01-15  (Read 6629 times)

Offline UPN1541

  • Jr. Member
  • **
  • Posts: 12
HTML patch 2007-01-15
« on: January 15, 2007, 09:38:47 AM »
Hello,

I would like to apply this patch:

http://sourceforge.net/forum/forum.php?forum_id=654693

However I don't know what to do with this file. Am I supposed to upload it to a specific directory???

I would rather apply just this file than have to re-upload everything again.

Thanks for the help in advance.

Offline WeVo

  • Jr. Member
  • **
  • Posts: 23
Re: HTML patch 2007-01-15
« Reply #1 on: January 15, 2007, 03:13:36 PM »
I think you must apply it under Linux.
But i'm looking for a tool to apply the patches under windows.

greetings

Markus

Offline Alk

  • Newbie
  • *
  • Posts: 1
Re: HTML patch 2007-01-15
« Reply #2 on: April 01, 2007, 05:19:34 PM »
Sorry to dig up this old thread, but I think it is rather important to give some instructions as I too was stuck until I just learnt how to apply patches.
.patch files are processed, on linux, by the patch command.
To patch roundcube, you need to use your SSH access and make sure you have permission to run this (I used root):

Upload the patch file to your server and then move it to the directory where your roundcube is installed.

cd (change directory) to the directory where your roundcube is installed.

Then, run the patch command:
Code: [Select]
patch -p0 <0.1-beta2.2.patchThe output should then be if all is well:
Quote
patching file program/steps/mail/func.inc


So, my entire process (for me!) was:
scp the patch file to my root directory from my PC (or using winSCP on Windows):
Code: [Select]
scp ~/Desktop/0.1-beta2.2.patch [email]root@ahem.com[/email]:/root/SSH in to my server as root.
Move the file from my root directory to my roundcube directory.
Code: [Select]
root@ahem.com [~]# mv 0.1-beta2.2.patch /usr/local/cpanel/base/roundcubecd to where my roundcube is installed:
Code: [Select]
root@ahem.com [~]# cd /usr/local/cpanel/base/roundcuberun the patch:
Code: [Select]
root@ahem.co [/usr/local/cpanel/base/roundcube]# patch -p0 <0.1-beta2.2.patch
patching file program/steps/mail/func.inc
Job done!