# HG changeset patch # User Juanma Barranquero # Date 1170237811 0 # Node ID b6e3d0c09cc7985f48bd90174ff0ed77be22bec4 # Parent 78cd3fe27d92122d38e4fe5fc9e08e3d2fa053a1 Update ../site-lisp/subdirs.el when needed. diff -r 78cd3fe27d92 -r b6e3d0c09cc7 nt/configure.bat --- 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