[Mingw-users] Question about 'patching' source code.

Back to archive index
Alexander Pickering alex****@cogar*****
Sat Oct 12 13:28:55 JST 2019


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.



More information about the MinGW-Users mailing list
Back to archive index