all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Juanma Barranquero" <lekktu@gmail.com>
To: "Eli Zaretskii" <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Pushing newer nt/subdirs.el into site-lisp/
Date: Wed, 31 Jan 2007 02:47:25 +0100	[thread overview]
Message-ID: <f7ccd24b0701301747v3461886dx3d3e1b441c3472c9@mail.gmail.com> (raw)
In-Reply-To: <uy7nk8dws.fsf@gnu.org>

On 1/30/07, Eli Zaretskii <eliz@gnu.org> wrote:

> I don't think it's by design, but your patch is too intrusive: it
> _always_ copies subdirs.el.

Well, nothing depends on site-lisp/subdirs.el, so it's not like
copying it is gonna cause any recompilation or something.

> I'd rather use the technique we already
> have in configure.bat to copy it only if it's different from the
> already existing file.

See the attached patch. AFAICS, the "fc /b foo.bar foo.bar" test is
used to determine whether fc.exe exists and returns a meaningful
value, so I've copied that too (but perhaps it'd be better to set a
flag the first time the check is done instead of repeating it).

                    /L/e/k/t/u


Index: nt/configure.bat
===================================================================
RCS file: /cvsroot/emacs/emacs/nt/configure.bat,v
retrieving revision 1.35
diff -u -2 -r1.35 configure.bat
--- nt/configure.bat	21 Jan 2007 04:26:22 -0000	1.35
+++ nt/configure.bat	31 Jan 2007 01:42:47 -0000
@@ -520,6 +520,15 @@
  Rem Some people use WinZip which doesn't create empty directories!
  if not exist ..\site-lisp\nul mkdir ..\site-lisp\
-if not exist ..\site-lisp\subdirs.el copy subdirs.el ..\site-lisp\subdirs.el
+Rem Update subdirs.el only if it is different or fc.exe doesn't work.
+if exist foo.bar del foo.bar
+fc /b foo.bar foo.bar >nul 2>&1
+if not errorlevel 2 goto doUpdateSubdirs
+fc /b subdirs.el ..\site-lisp\subdirs.el >nul 2>&1
+if not errorlevel 1 goto dontUpdateSubdirs
+:doUpdateSubdirs
+if exist ..\site-lisp\subdirs.el del ..\site-lisp\subdirs.el
+copy subdirs.el ..\site-lisp\subdirs.el

+:dontUpdateSubdirs
 echo.
 echo Emacs successfully configured.

  reply	other threads:[~2007-01-31  1:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-30 10:16 Pushing newer nt/subdirs.el into site-lisp/ Juanma Barranquero
2007-01-30 20:20 ` Eli Zaretskii
2007-01-31  1:47   ` Juanma Barranquero [this message]
2007-01-31  4:15     ` Eli Zaretskii

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f7ccd24b0701301747v3461886dx3d3e1b441c3472c9@mail.gmail.com \
    --to=lekktu@gmail.com \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.