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
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
:src5\r
\r
if "%nodebug%" == "" goto src6\r
-sed -e "/^CFLAGS *=/s/ *-g//" <Makefile >makefile.tmp\r
+sed -e "/^CFLAGS *=/s/ *-gcoff//" <Makefile >makefile.tmp\r
sed -e "/^LDFLAGS *=/s/=/=-s/" <makefile.tmp >Makefile\r
rm -f makefile.tmp\r
:src6\r
:libsrc2\r
rm -f makefile.new junk.c\r
if "%nodebug%" == "" goto libsrc3\r
-sed -e "/^CFLAGS *=/s/ *-g//" <Makefile >makefile.tmp\r
+sed -e "/^CFLAGS *=/s/ *-gcoff//" <Makefile >makefile.tmp\r
sed -e "/^ALL_CFLAGS *=/s/=/= -s/" <makefile.tmp >Makefile\r
rm -f makefile.tmp\r
:libsrc3\r
cd oldxmenu\r
sed -f ../msdos/sed5x.inp <Makefile.in >Makefile\r
if "%nodebug%" == "" goto oldx2\r
-sed -e "/^CFLAGS *=/s/ *-g//" <Makefile >makefile.tmp\r
+sed -e "/^CFLAGS *=/s/ *-gcoff//" <Makefile >makefile.tmp\r
mv -f makefile.tmp Makefile\r
:oldx2\r
cd ..\r
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
: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