LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-14-2004, 03:30 PM   #1
kscott121
Member
 
Registered: Jul 2003
Location: NC
Distribution: Fedora,Mepis,Debian
Posts: 84

Rep: Reputation: 15
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
 
Old 07-16-2004, 07:54 PM   #2
kscott121
Member
 
Registered: Jul 2003
Location: NC
Distribution: Fedora,Mepis,Debian
Posts: 84

Original Poster
Rep: Reputation: 15
Question 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
 
Old 07-16-2004, 08:43 PM   #3
Cerbere
Member
 
Registered: Dec 2002
Location: California
Distribution: Slackware & LFS
Posts: 799

Rep: Reputation: 33
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
 
Old 07-16-2004, 09:21 PM   #4
rshaw
Senior Member
 
Registered: Apr 2001
Location: Perry, Iowa
Distribution: Mepis , Debian
Posts: 2,692

Rep: Reputation: 45
merged into one thread
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple versions of packages installed bakwas_internet Fedora 7 06-01-2007 01:04 PM
Synaptic Multiple Versions Hook99 Linux - Newbie 6 03-13-2005 10:04 AM
multiple versions of gcc Avatar33 Linux - General 3 02-22-2005 02:06 PM
Multiple versions of GLIBC El Craigo Red Hat 2 08-11-2004 11:14 PM
new patch in linux includes the corrections of previous versions? ysturdivant Linux - Security 3 11-05-2003 03:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration