Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Sep 15th, 2005, 4:37 AM   #1
rem
Newbie
 
Join Date: Sep 2005
Location: Kent, UK
Posts: 2
Rep Power: 0 rem is on a distinguished road
Patching

On my website I am using Mambo 4.5.2. I have modified the core PHP files to customise my Mambo. Mambo have now released a patch from 4.5.2 to 4.5.2.3 and installation is a simple procedure which requires the files included within the patch to be copied to the respective directories of the root of my installation thereby overwriting the original files [with my modifications].

Fortunately I maintained a good record of the modifications I made to the original files. I understand by using common *nix application such as diff and patch I could apply the modifications automatically however I doubt this would be necessary as I could implement the modifications I made originally into the new release files manually.

What I would like to know is the best way to handle this in the future as it may not be possible to incorporate existing modifications to new releases manually due to the number of modifications made.

Rem
__________________
A nerd is very similar to a geek, but with more RAM and a faster modem.
http://oldskool.shacknet.nu
rem is offline   Reply With Quote
Old Sep 15th, 2005, 1:36 PM   #2
iignotus
Professional Programmer
 
iignotus's Avatar
 
Join Date: Apr 2005
Location: Nowhere Special
Posts: 466
Rep Power: 4 iignotus is on a distinguished road
Send a message via AIM to iignotus
Mambo? Don't you mean JOOOOOMLAAAAAAAA??

Sorry I have nothing to contribute
__________________
% rc4 hexkey < input > output
#define S ,t=s[i],s[i]=s[j],s[j]=t /* rc4 hexkey <file */
unsigned char k[256],s[256],i,j,t;main(c,v,e)char**v;{++v;while(++i)s[ 
i]=i;for(c=0;*(*v)++;k[c++]=e)sscanf((*v)++-1,"%2x",&e);while(j+=s[i]
+k[i%c]S,++i);for(j=0;c=~getchar();putchar(~c^s[t+=s[i]]))j+=s[++i]S;}
iignotus is offline   Reply With Quote
Old Sep 15th, 2005, 1:53 PM   #3
Pizentios
Programming Guru
 
Pizentios's Avatar
 
Join Date: May 2004
Location: Brandon, Manitoba, Canada
Posts: 2,023
Rep Power: 7 Pizentios is on a distinguished road
Send a message via ICQ to Pizentios Send a message via MSN to Pizentios
this is more of a shell scripting problem rather than php, moved to the right forum.

What i would do is create a bash/perl/python/whatever script that uses the comm command under linux, then takes the output and puts the unique lines from file1, and file2 into a new php file along with all the common lines. i have no experience with the comm command, but i am sure if you know how to use your choosen scripting language, and read the man file for comm you'll be able to figure something out.

see http://www.linuxcommand.org/man_pages/comm1.html for more info on the comm command.
__________________
Profanity is the one language that all programmers understand.

Check out my Blog <---updated Nov 30 2007!
Pizentios is offline   Reply With Quote
Old Sep 15th, 2005, 4:23 PM   #4
rem
Newbie
 
Join Date: Sep 2005
Location: Kent, UK
Posts: 2
Rep Power: 0 rem is on a distinguished road
Quote:
this is more of a shell scripting problem rather than php, moved to the right forum.
Jeez. I was wondering what happened to my post!

Quote:
see http://www.linuxcommand.org/man_pages/comm1.html for more info on the comm command.
Ta. I'll look into it and let you know.

Rem
__________________
A nerd is very similar to a geek, but with more RAM and a faster modem.
http://oldskool.shacknet.nu
rem is offline   Reply With Quote
Old Sep 16th, 2005, 8:56 AM   #5
Pizentios
Programming Guru
 
Pizentios's Avatar
 
Join Date: May 2004
Location: Brandon, Manitoba, Canada
Posts: 2,023
Rep Power: 7 Pizentios is on a distinguished road
Send a message via ICQ to Pizentios Send a message via MSN to Pizentios
Sounds good, let me know how it goes.
__________________
Profanity is the one language that all programmers understand.

Check out my Blog <---updated Nov 30 2007!
Pizentios is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 12:43 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC