> From: Gavin Smith <[email protected]>
> Date: Tue, 20 Jan 2026 19:42:57 +0000
> Cc: [email protected], [email protected]
> 
> On Tue, Jan 20, 2026 at 09:38:22PM +0200, Eli Zaretskii wrote:
> > > > I wrote such a batch file, it is an almost exact equivalent of the
> > > > manual-not-found shell script.
> > > > 
> > > > On significant change I needed to make is to place the small Awk
> > > > program used by the script on a separate file.  That's because command
> > > > lines on Windows cannot include embedded newlines.  If that is okay, I
> > > > can send a patch to add the batch file and the necessary glue to
> > > > Makefile.am.
> > > 
> > > Yes, that sounds fine.
> > 
> > OK, will send in a couple of days.
> > 
> > > Could you put installing the batch file and Awk program in a condition
> > > so it is only installed on Windows?
> > 
> > Is using the HOST_IS_WINDOWS thingy for this okay?
> 
> Yes, that Automake conditional is used in several places in our Makefile.am
> files.

I attach the patch as a binary attachment, to avoid mangling of the
end-of-line format of the batch file.  In any case, when you commit
the changes, please verify that the manual-not-found.cmd file has
Windows-style CRLF end-of-line format.  (The Windows shell on recent
Windows systems is fine with batch files with Unix-style EOLs, but
better be safe than sorry.)

Attachment: DIFFS_hook
Description: Binary data

Reply via email to