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

Back to archive index
David Wall dc_wall****@adsl*****
Sat Oct 12 09:39:48 JST 2019


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.

Is there any program in Mingw 6.3.0 that I can utilise to do these patches for me.

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.

In plain DOS I have a program that can do that sort of stuff but it won't run under Mingw.

Sorry to ask such a stupid question.

Thanks in anticipation.

David Wall



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