Update ../site-lisp/subdirs.el when needed.

This commit is contained in:
Juanma Barranquero 2007-01-31 10:04:15 +00:00
parent 46bb060f6c
commit 57a6440883
2 changed files with 14 additions and 1 deletions

View file

@ -1,3 +1,7 @@
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.

View file

@ -519,8 +519,17 @@ del config.settings
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