> Date: Sat, 19 Jan 2008 16:24:55 -0500
> From: Bill Meier <wmeier@xxxxxxxxxxx>
> CC: Eli Zaretskii <eliz@xxxxxxx>, Jason Rumney <jasonr@xxxxxxx>
> I'm inclined to do the fix as follows (comments welcome):
> 1. In lisp/makefile.w32-in:
> For the install target: change 'cp -f' to '($CP)'
> 2. In configure.bat, gmake.defs and nmake.defs:
> Add appropiate code so as to test for the availability of 'cp -p' and
> to define CP (and CP_DIR) to include (or not) the '-p' option.
As I wrote earlier, I'd prefer that you use Emacs's copy-file
primitive to copy files. That would certainly work on all supported
platforms, without requiring a cp that supports the -p option. I
suspect that testing for the support of -p in a way that works on all
Windows shells would be a hard job anyway.