LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Using patch with multiple source versions (https://www.linuxquestions.org/questions/linux-software-2/using-patch-with-multiple-source-versions-206063/)

kscott121 07-14-2004 03:30 PM

Can patch work on different version?
 
I am thinking of using patch to patch legacy source code where there are several older versions in existance but that have no differences in the areas I want to patch. I have run into version problems so far.
Is there a way to tell patch to ignore version time/date stamps and make the changes on a context basis only ?
I also think someone less newbie than me could do this with sed (or similar).
Or is there another way?
Thanks in advance.
Ken

kscott121 07-16-2004 07:54 PM

Using patch with multiple source versions
 
I am trying to patch several old versions of the same legacy code in use on different machines. The versions are different, but not different where I want to change/patch. Some of the changes are multi-line. Can a single diff output patch file be built and applied to various source files? When I try it, the other unrelated differences keep tripping up patch.

Can I use patch for this or will some other sophisticated find/replace something (Perl/awk/sed) work? Thanks in advance.

Ken

Cerbere 07-16-2004 08:43 PM

Double-posting is against the rules. When you start multiple posts on the same topic, it fragments the conversation, which makes the forum's search function less efficient.

If your thread doesn't receive a response, wait (at least) 24 hours, then post a reply to the thread. This will 'bump' it up in the forum.

Enjoy!
--- Cerbere

rshaw 07-16-2004 09:21 PM

merged into one thread


All times are GMT -5. The time now is 02:16 PM.