The following script was applied:
sed ':a;/part of MXE.$/{N;s/\n//;ba}' -i $(git grep -l 'part of MXE')
sed 's/\(part of MXE\).*\(See index.html\)/\1. \2/' -i \
$(git grep -l 'part of MXE.*See index.html')
before='This file is part of MXE. See index.html for further information.'
after='This file is part of MXE. See LICENSE.md for licensing information.'
sed "s/$before/$after/" -i $(git grep -l 'part of MXE')
Then git grep 'index.html for further information' revealed two other files.
One of them was patched manually (patch.mk). Makefile has text
"See index.html for further information" unrelated to licensing.
See https://github.com/mxe/mxe/issues/1500#issuecomment-241340792
The reason of this patch is not clear, because glib.mk already depends on gettext.
It introduces a (hard to find) difference between mxe and native linux
builds: On Linux, glib includes gettext header libintl.h, but not on
mxe.
Use "git format-patch" instead of "git log -p --reverse"
to generate patches which can be imported with with "git am".
Also set author/from to "mingw-cross-env" since attribution
is done in the mingw-cross-env repository.