+2007-01-31 Juanma Barranquero <lekktu@gmail.com>
+
+ * configure.bat: Update ../site-lisp/subdirs.el when needed.
+
2007-01-30 Juanma Barranquero <lekktu@gmail.com>
* subdirs.el: Add "no-byte-compile: t" local variable.
\r
Rem Some people use WinZip which doesn't create empty directories!\r
if not exist ..\site-lisp\nul mkdir ..\site-lisp\\r
-if not exist ..\site-lisp\subdirs.el copy subdirs.el ..\site-lisp\subdirs.el\r
-\r
+Rem Update subdirs.el only if it is different or fc.exe doesn't work.\r
+if exist foo.bar del foo.bar\r
+fc /b foo.bar foo.bar >nul 2>&1\r
+if not errorlevel 2 goto doUpdateSubdirs\r
+fc /b subdirs.el ..\site-lisp\subdirs.el >nul 2>&1\r
+if not errorlevel 1 goto dontUpdateSubdirs\r
+:doUpdateSubdirs\r
+if exist ..\site-lisp\subdirs.el del ..\site-lisp\subdirs.el\r
+copy subdirs.el ..\site-lisp\subdirs.el\r
+\r
+:dontUpdateSubdirs\r
echo.\r
echo Emacs successfully configured.\r
echo Emacs successfully configured. >>config.log\r