Re: Question about 'patching' source code.

Alexander Pickering <alex-CQY+Byf1Y/[email protected]>
Newsgroups gmane.comp.gnu.mingw.user
Message-ID <[email protected]>
On 10/11/2019 8:39 PM, David Wall wrote:
> I regularly 'build' GnuCOBOL compiler from source code - however it is
> supplied in 'tar' format.
> I use 'tar' to unpack it and then I need to make changes to certain
> files all the time.
> 
> I installed msys-patch and checked thru the documentation - but it
> processes a 'diff' file and
> that confused me no end. Maybe I'll have to investigate how to produce a
> 'diff' file.
> 
> What I'd like to do is tell a patch program to:
> 
> 1. Find this file     2. Find this text in the file    3. Replace found
> text with new text.
> 
> It would be easier to do within Mingw - rather than exit and make the
> patches manually
> then continue with the build.

Is there any reason you want to use mingw for this? This sounds like a
job for sed + a makefile to me.

_______________________________________________
MinGW-Users mailing list
[email protected]

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.osdn.me/mailman/listinfo/mingw-users
Also: mailto:[email protected]?subject=unsubscribe
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.