From: Bill Meier <wmeier@newsguy.com>
To: bug-gnu-emacs@gnu.org
Subject: Re: [PATCH] nt/gmake,defs, nt/nmake.defs
Date: Sat, 19 Jan 2008 16:24:55 -0500 [thread overview]
Message-ID: <47926AA7.3070804@newsguy.com> (raw)
In-Reply-To: <4791D691.50406@gnu.org>
OK:
1. A Windows 'mingw32-make install' (to other than the build
directories) ends up installing files such as those in emacs/etc/ and
such as the .el files without preserving the date/time of these (source)
files. Although this may not cause any direct problems, IMHO it's a bug
in the install.
I note from a a quick look at the *nix install scripts that the *nix
install does preserve the file date/times (since tar .... is used to
copy the files [at least for the .el files]).
(As an aside, I also note that the *nix install also removes any
.cvsignore & etc files from the install destination directories as part
of the install; I'll leave that to another time).
2. I'm happy to submit a proposed fix which will preserve the file
date/times during an install (if cp implements -p).
I found after some further testing that my original fix did not work for
all the files installed (specifically: the .el files) since the
lisp/makefile.w32-in uses 'cp' (and not '$(CP)' for the install of the
.el files & etc.
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.
This approach changes all usage of CP and CP_DIR in the makefile.w32-in
files to preserve file date/times; A review of the usage of $(CP) and
some testing suggests this won't be a problem.
An alternative approach would be to change just the install usage of cp;
Eg: by defining a new macro (say) 'CPI=cp -p -f' (if 'cp -p'
implemented).
In this case the cp usage for install would need to be changed to use
$(CPI) in some number of the various makefile.w32-in files.
Thoughts ?
Thanks
Bill Meier
next prev parent reply other threads:[~2008-01-19 21:24 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-15 22:18 [PATCH] nt/gmake,defs, nt/nmake.defs Bill Meier
2008-01-16 19:17 ` Eli Zaretskii
2008-01-18 16:14 ` Bill Meier
2008-01-18 17:06 ` Eli Zaretskii
2008-01-18 21:16 ` Eli Zaretskii
2008-01-18 21:41 ` Jason Rumney
2008-01-19 8:52 ` Eli Zaretskii
2008-01-19 10:53 ` Jason Rumney
2008-01-19 21:24 ` Bill Meier [this message]
2008-01-19 22:01 ` Eli Zaretskii
-- strict thread matches above, loose matches on Subject: below --
2008-01-20 17:35 Bill Meier
2008-01-20 17:55 ` Bill Meier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=47926AA7.3070804@newsguy.com \
--to=wmeier@newsguy.com \
--cc=bug-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).