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 |
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 |
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 |
merged into one thread
|
All times are GMT -5. The time now is 02:16 PM. |