aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-04-29 19:29:03 +0000
committerRichard M. Stallman1994-04-29 19:29:03 +0000
commit331fdf1eee04ae22b46cd8f73a8f847c1c1ae220 (patch)
tree24eb156bc74b54660788a75db895007dcef07f2e
parentf57ddf6775eb05baae28b628f85e8d1ee6023d07 (diff)
downloademacs-331fdf1eee04ae22b46cd8f73a8f847c1c1ae220.tar.gz
emacs-331fdf1eee04ae22b46cd8f73a8f847c1c1ae220.zip
*** empty log message ***
-rw-r--r--config.bat43
1 files changed, 34 insertions, 9 deletions
diff --git a/config.bat b/config.bat
index 45aa38199f0..d83656c8b20 100644
--- a/config.bat
+++ b/config.bat
@@ -1,6 +1,8 @@
1@echo off 1@echo off
2rem ---------------------------------------------------------------------- 2rem ----------------------------------------------------------------------
3rem Configuration script for MSDOS 3rem Configuration script for MSDOS
4rem Copyright (C) 1994 Free Software Foundation, Inc.
5
4rem This file is part of GNU Emacs. 6rem This file is part of GNU Emacs.
5 7
6rem GNU Emacs is free software; you can redistribute it and/or modify 8rem GNU Emacs is free software; you can redistribute it and/or modify
@@ -19,23 +21,35 @@ rem the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
19rem ---------------------------------------------------------------------- 21rem ----------------------------------------------------------------------
20rem YOU'LL NEED THE FOLLOWING UTILITIES TO MAKE EMACS: 22rem YOU'LL NEED THE FOLLOWING UTILITIES TO MAKE EMACS:
21rem 23rem
22rem + djgpp version 1,11 24rem + msdos version 3 or better.
23rem + make utility that allows breaking of 128 chars limit of commands. 25rem + djgpp version 1,11 maint 4 or better.
24rem ndmake (as of version 4.5) won't work due to a line length limit. 26rem + make utility that allows breaking of the 128 chars limit on
27rem command lines. ndmake (as of version 4.5) won't work due to a
28rem line length limit.
25rem + rm, mv, chmod (From GNU file utilities). 29rem + rm, mv, chmod (From GNU file utilities).
26rem + sed. 30rem + sed.
31rem
32rem You must install in directory c:/emacs or change this script.
27rem ---------------------------------------------------------------------- 33rem ----------------------------------------------------------------------
28if not "%2" == "" goto usage 34if not "%2" == "" goto usage
29if "%1" == "msdos" goto msdos 35if "%1" == "msdos" goto msdos
36if "%1" == "msdos-X11" goto msdos11
30:usage 37:usage
31echo Usage: config msdos 38echo Usage: config msdos
39rem echo or config msdos-X11 -- don't even think about it
32echo [Read the script before you run it; also check that you have all the 40echo [Read the script before you run it; also check that you have all the
33echo necessary utilities.] 41echo necessary utilities.]
34goto end 42goto end
35rem ---------------------------------------------------------------------- 43rem ----------------------------------------------------------------------
44:msdos11
45set X11=y
46goto msdoscommon
47rem ----------------------------------------------------------------------
36:msdos 48:msdos
37rem Change to the Emacs root 49set X11=
38cd c:\emacs 50:msdoscommon
51rem Change to the Emacs root -- assume we are there
52rem cd c:\emacs
39rem ---------------------------------------------------------------------- 53rem ----------------------------------------------------------------------
40Echo Configuring the source directory... 54Echo Configuring the source directory...
41cd src 55cd src
@@ -69,8 +83,13 @@ rm -f paths.h
69sed -e "s!/lib/emacs!!" -e "s!/usr/local!c:/emacs!" -e "s!/data!/etc!" <%PATHSH% >paths.h 83sed -e "s!/lib/emacs!!" -e "s!/usr/local!c:/emacs!" -e "s!/data!/etc!" <%PATHSH% >paths.h
70 84
71rem Create "config.h" 85rem Create "config.h"
72rm -f config.h 86rm -f config.h config.tmp
73sed -f ../msdos/sed2.inp <%CONFIGH% >config.h 87cp %CONFIGH% config.tmp
88if "%X11%" == "" goto src4
89sed -f ../msdos/sed4.inp <%CONFIGH% >config.tmp
90:src4
91sed -f ../msdos/sed2.inp <config.tmp >config.h
92rm -f config.tmp
74 93
75rem On my system dir.h gets in the way. It's a VMS file so who cares. 94rem On my system dir.h gets in the way. It's a VMS file so who cares.
76if exist dir.h ren dir.h vmsdir.h 95if exist dir.h ren dir.h vmsdir.h
@@ -85,11 +104,17 @@ rem ----------------------------------------------------------------------
85Echo Configuring the library source directory... 104Echo Configuring the library source directory...
86cd lib-src 105cd lib-src
87rem Create "makefile" from "makefile.in". 106rem Create "makefile" from "makefile.in".
88copy makefile makefile.bak >nul 107sed -e "s@^# \(Generated.*\)$@/* \1 */@" -e "s@/\*\*/#\(.*\)$@/* \1 */@" <Makefile.in >junk.c
89sed -f ../msdos/sed3.inp <makefile.in >makefile 108gcc -E -I. -I../src junk.c | sed -e "s/^ / /" -e "/^#/d" -e "/^[ ]*$/d" >Makefile.new
109sed -f ../msdos/sed3.inp <makefile.new >makefile
90cd .. 110cd ..
91rem ---------------------------------------------------------------------- 111rem ----------------------------------------------------------------------
92Echo Configuring the main directory... 112Echo Configuring the main directory...
93copy msdos\mainmake makefile >nul 113copy msdos\mainmake makefile >nul
94rem ---------------------------------------------------------------------- 114rem ----------------------------------------------------------------------
95:end 115:end
116set X11=
117set MAKEFILEIN=
118set PATHSH=
119set CONFIGH=
120