(Fread_file_name): Correct handling of dollars in file
[bpt/emacs.git] / config.bat
index f127d00..f5e7392 100644 (file)
@@ -31,14 +31,19 @@ rem   + rm and mv (from GNU file utilities).
 rem   + sed (you can use the port that comes with DJGPP).\r
 rem\r
 rem   You should be able to get all the above utilities from any SimTel\r
-rem   repository, e.g. ftp.coast.net, in the directories\r
-rem   "SimTel/vendors/djgpp" and "SimTel/vendors/gnu/gnuish/dos_only".  As\r
-rem   usual, please use your local mirroring site to reduce trans-Atlantic\r
-rem   traffic.\r
+rem   repository, e.g. ftp.simtel.net, in the directory\r
+rem   "pub/simtelnet/gnu/djgpp/v2gnu".  As usual, please use your local\r
+rem   mirroring site to reduce trans-Atlantic traffic.\r
 rem   ----------------------------------------------------------------------\r
 set X11=\r
 set nodebug=\r
 set djgpp_ver=\r
+if "%1" == "" goto usage\r
+rem   ----------------------------------------------------------------------\r
+rem   See if their environment is large enough.  We need 28 bytes.\r
+set $foo$=789012345678901234567\r
+if not "%$foo$%" == "789012345678901234567" goto SmallEnv\r
+set $foo$=\r
 :again\r
 if "%1" == "" goto usage\r
 if "%1" == "--with-x" goto withx\r
@@ -122,10 +127,10 @@ Rem   ----------------------------------------------------------------------
 Echo Configuring the source directory...\r
 cd src\r
 \r
-rem   Create "paths.h"\r
-sed -f ../msdos/sed4.inp <paths.in >paths.tmp\r
-update paths.tmp paths.h >nul\r
-rm -f paths.tmp\r
+rem   Create "epaths.h"\r
+sed -f ../msdos/sed4.inp <epaths.in >epaths.tmp\r
+update epaths.tmp epaths.h >nul\r
+rm -f epaths.tmp\r
 \r
 rem   Create "config.h"\r
 rm -f config.h2 config.tmp\r
@@ -199,6 +204,13 @@ cd man
 sed -f ../msdos/sed6.inp < Makefile.in > Makefile\r
 cd ..\r
 rem   ----------------------------------------------------------------------\r
+If not Exist leim\quail\latin-pre.el goto maindir\r
+Echo Configuring the leim directory...\r
+cd leim\r
+sed -f ../msdos/sedleim.inp < Makefile.in > Makefile\r
+cd ..\r
+rem   ----------------------------------------------------------------------\r
+:maindir\r
 Echo Configuring the main directory...\r
 If "%DJGPP_VER%" == "1" goto mainv1\r
 Echo Looking for the GDB init file...\r
@@ -218,6 +230,11 @@ copy msdos\mainmake.v2 Makefile >nul
 :mainv1\r
 If "%DJGPP_VER%" == "1" copy msdos\mainmake Makefile >nul\r
 rem   ----------------------------------------------------------------------\r
+goto End\r
+:SmallEnv\r
+echo Your environment size is too small.  Please enlarge it and run me again.\r
+echo For example, type "command.com /e:2048" to have 2048 bytes available.\r
+set $foo$=\r
 :end\r
 set X11=\r
 set nodebug=\r