changeset 75564:b6e3d0c09cc7

Update ../site-lisp/subdirs.el when needed.
author Juanma Barranquero <lekktu@gmail.com>
date Wed, 31 Jan 2007 10:03:31 +0000
parents 78cd3fe27d92
children 646a89b6a638
files nt/configure.bat
diffstat 1 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/nt/configure.bat	Wed Jan 31 05:53:30 2007 +0000
+++ b/nt/configure.bat	Wed Jan 31 10:03:31 2007 +0000
@@ -519,8 +519,17 @@
 
 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.
 echo Emacs successfully configured. >>config.log