X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/074028631a165313f89b0d153f28a785477c0e7b..11d9bd93ed8439d67734e77503a45481fc61a7c5:/config.bat diff --git a/config.bat b/config.bat index f127d00750..6bfd818953 100644 --- a/config.bat +++ b/config.bat @@ -31,14 +31,19 @@ rem + rm and mv (from GNU file utilities). rem + sed (you can use the port that comes with DJGPP). rem rem You should be able to get all the above utilities from any SimTel -rem repository, e.g. ftp.coast.net, in the directories -rem "SimTel/vendors/djgpp" and "SimTel/vendors/gnu/gnuish/dos_only". As -rem usual, please use your local mirroring site to reduce trans-Atlantic -rem traffic. +rem repository, e.g. ftp.simtel.net, in the directory +rem "pub/simtelnet/gnu/djgpp/v2gnu". As usual, please use your local +rem mirroring site to reduce trans-Atlantic traffic. rem ---------------------------------------------------------------------- set X11= set nodebug= set djgpp_ver= +if "%1" == "" goto usage +rem ---------------------------------------------------------------------- +rem See if their environment is large enough. We need 28 bytes. +set $foo$=789012345678901234567 +if not "%$foo$%" == "789012345678901234567" goto SmallEnv +set $foo$= :again if "%1" == "" goto usage if "%1" == "--with-x" goto withx @@ -122,10 +127,10 @@ Rem ---------------------------------------------------------------------- Echo Configuring the source directory... cd src -rem Create "paths.h" -sed -f ../msdos/sed4.inp paths.tmp -update paths.tmp paths.h >nul -rm -f paths.tmp +rem Create "epaths.h" +sed -f ../msdos/sed4.inp epaths.tmp +update epaths.tmp epaths.h >nul +rm -f epaths.tmp rem Create "config.h" rm -f config.h2 config.tmp @@ -142,7 +147,7 @@ if exist dir.h ren dir.h vmsdir.h rem Create "makefile" from "makefile.in". rm -f Makefile junk.c -sed -e "1,/cpp stuff/s@^# .*$@@" junk.c +sed -e "1,/== start of cpp stuff ==/s@^# .*$@@" junk.c If "%DJGPP_VER%" == "1" Goto mfV1 gcc -E junk.c | sed -f ../msdos/sed1v2.inp >Makefile goto mfDone @@ -158,7 +163,7 @@ rm -f makefile.tmp :src5 if "%nodebug%" == "" goto src6 -sed -e "/^CFLAGS *=/s/ *-g//" makefile.tmp +sed -e "/^CFLAGS *=/s/ *-gcoff//" makefile.tmp sed -e "/^LDFLAGS *=/s/=/=-s/" Makefile rm -f makefile.tmp :src6 @@ -167,7 +172,7 @@ rem ---------------------------------------------------------------------- Echo Configuring the library source directory... cd lib-src rem Create "makefile" from "makefile.in". -sed -e "1,/cpp stuff/s@^# .*$@@" junk.c +sed -e "1,/== start of cpp stuff ==/s@^# .*$@@" junk.c gcc -E -I. -I../src junk.c | sed -e "s/^ / /" -e "/^#/d" -e "/^[ ]*$/d" >makefile.new If "%DJGPP_VER%" == "2" goto libsrc-v2 sed -f ../msdos/sed3.inp Makefile @@ -177,7 +182,7 @@ sed -f ../msdos/sed3v2.inp Makefile :libsrc2 rm -f makefile.new junk.c if "%nodebug%" == "" goto libsrc3 -sed -e "/^CFLAGS *=/s/ *-g//" makefile.tmp +sed -e "/^CFLAGS *=/s/ *-gcoff//" makefile.tmp sed -e "/^ALL_CFLAGS *=/s/=/= -s/" Makefile rm -f makefile.tmp :libsrc3 @@ -188,7 +193,7 @@ Echo Configuring the oldxmenu directory... cd oldxmenu sed -f ../msdos/sed5x.inp Makefile if "%nodebug%" == "" goto oldx2 -sed -e "/^CFLAGS *=/s/ *-g//" makefile.tmp +sed -e "/^CFLAGS *=/s/ *-gcoff//" makefile.tmp mv -f makefile.tmp Makefile :oldx2 cd .. @@ -199,6 +204,18 @@ cd man sed -f ../msdos/sed6.inp < Makefile.in > Makefile cd .. rem ---------------------------------------------------------------------- +Echo Configuring the lisp directory... +cd lisp +sed -f ../msdos/sedlisp.inp < Makefile.in > Makefile +cd .. +rem ---------------------------------------------------------------------- +If not Exist leim\quail\latin-pre.el goto maindir +Echo Configuring the leim directory... +cd leim +sed -f ../msdos/sedleim.inp < Makefile.in > Makefile +cd .. +rem ---------------------------------------------------------------------- +:maindir Echo Configuring the main directory... If "%DJGPP_VER%" == "1" goto mainv1 Echo Looking for the GDB init file... @@ -218,6 +235,11 @@ copy msdos\mainmake.v2 Makefile >nul :mainv1 If "%DJGPP_VER%" == "1" copy msdos\mainmake Makefile >nul rem ---------------------------------------------------------------------- +goto End +:SmallEnv +echo Your environment size is too small. Please enlarge it and run me again. +echo For example, type "command.com /e:2048" to have 2048 bytes available. +set $foo$= :end set X11= set nodebug=