aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1995-09-02 16:25:34 +0000
committerRichard M. Stallman1995-09-02 16:25:34 +0000
commit2f3e7987f203dcdeee361532808748d8ac504064 (patch)
treef647cb08497df9810e7c93560dad44042b53f38a
parentc9684936567a0fe525e1f5cdef2fdc802cf5385d (diff)
downloademacs-2f3e7987f203dcdeee361532808748d8ac504064.tar.gz
emacs-2f3e7987f203dcdeee361532808748d8ac504064.zip
Simplify using new names file names src/makefile.in,
config.in, paths.in. Change Echo commands not to use `.
-rw-r--r--config.bat68
1 files changed, 17 insertions, 51 deletions
diff --git a/config.bat b/config.bat
index 446060c186e..3f838c81430 100644
--- a/config.bat
+++ b/config.bat
@@ -57,33 +57,33 @@ shift
57goto again 57goto again
58rem ---------------------------------------------------------------------- 58rem ----------------------------------------------------------------------
59:msdos 59:msdos
60Echo Checking whether `sed' is available... 60Echo Checking whether 'sed' is available...
61Sed -e "w junk.$$$" <Nul 61sed -e "w junk.$$$" <Nul
62If Exist junk.$$$ Goto sedOk 62If Exist junk.$$$ Goto sedOk
63Echo To configure `Emacs' you need to have `sed'! 63Echo To configure 'Emacs' you need to have 'sed'!
64Goto End 64Goto End
65:sedOk 65:sedOk
66Echo Checking whether `rm' is available... 66Echo Checking whether 'rm' is available...
67rm -f junk.$$$ 67rm -f junk.$$$
68If Not Exist junk.$$$ Goto rmOk 68If Not Exist junk.$$$ Goto rmOk
69Echo To configure `Emacs' you need to have `rm'! 69Echo To configure 'Emacs' you need to have 'rm'!
70Goto End 70Goto End
71:rmOk 71:rmOk
72Echo Checking whether `mv' is available... 72Echo Checking whether 'mv' is available...
73rm -f junk.1 junk.2 73rm -f junk.1 junk.2
74echo foo >junk.1 74echo foo >junk.1
75mv junk.1 junk.2 75mv junk.1 junk.2
76If Exist junk.2 Goto mvOk 76If Exist junk.2 Goto mvOk
77Echo To configure `Emacs' you need to have `mv'! 77Echo To configure 'Emacs' you need to have 'mv'!
78rm -f junk.1 78rm -f junk.1
79Goto End 79Goto End
80:mvOk 80:mvOk
81rm -f junk.2 81rm -f junk.2
82Echo Checking whether `gcc' is available... 82Echo Checking whether 'gcc' is available...
83echo main(){} >junk.c 83echo main(){} >junk.c
84gcc -c junk.c 84gcc -c junk.c
85if exist junk.o goto gccOk 85if exist junk.o goto gccOk
86Echo To configure `Emacs' you need to have `gcc'! 86Echo To configure 'Emacs' you need to have 'gcc'!
87rm -f junk.c 87rm -f junk.c
88Goto End 88Goto End
89:gccOk 89:gccOk
@@ -91,41 +91,17 @@ rm -f junk.c junk.o
91Rem ---------------------------------------------------------------------- 91Rem ----------------------------------------------------------------------
92Echo Configuring the source directory... 92Echo Configuring the source directory...
93cd src 93cd src
94set PATHSH=paths-h.in
95if exist %PATHSH% goto src1
96set PATHSH=paths.h-in
97if exist %PATHSH% goto src1
98echo config: *** The file originally called "src/paths.h.in" cannot be found.
99cd ..
100goto end
101:src1
102set CONFIGH=config-h.in
103if exist %CONFIGH% goto src2
104set CONFIGH=config.h-in
105if exist %CONFIGH% goto src2
106echo config: *** The file originally called "src/config.h.in" cannot be found.
107cd ..
108goto end
109:src2
110set MAKEFILEIN=makefile.in-in
111if exist %MAKEFILEIN% goto src3
112set MAKEFILEIN=makefile-in.in
113if exist %MAKEFILEIN% goto src3
114echo makefile: *** The file originally called "src/makefile.in.in" cannot be found.
115cd ..
116goto end
117:src3
118 94
119rem Create "paths.h" 95rem Create "paths.h"
120sed -f ../msdos/sed4.inp <%PATHSH% >paths.tmp 96sed -f ../msdos/sed4.inp <paths.in >paths.tmp
121update paths.tmp paths.h >nul 97update paths.tmp paths.h >nul
122rm -f paths.tmp 98rm -f paths.tmp
123 99
124rem Create "config.h" 100rem Create "config.h"
125rm -f config.h2 config.tmp 101rm -f config.h2 config.tmp
126cp %CONFIGH% config.tmp 102cp config.in config.tmp
127if "%X11%" == "" goto src4 103if "%X11%" == "" goto src4
128sed -f ../msdos/sed2x.inp <%CONFIGH% >config.tmp 104sed -f ../msdos/sed2x.inp <config.in >config.tmp
129:src4 105:src4
130sed -f ../msdos/sed2.inp <config.tmp >config.h2 106sed -f ../msdos/sed2.inp <config.tmp >config.h2
131update config.h2 config.h >nul 107update config.h2 config.h >nul
@@ -134,11 +110,12 @@ rm -f config.tmp config.h2
134rem On my system dir.h gets in the way. It's a VMS file so who cares. 110rem On my system dir.h gets in the way. It's a VMS file so who cares.
135if exist dir.h ren dir.h vmsdir.h 111if exist dir.h ren dir.h vmsdir.h
136 112
137rem Create "makefile" from "makefile.in.in". 113rem Create "makefile" from "makefile.in".
138rm -f makefile junk.c 114rm -f makefile junk.c
139sed -e "1,/cpp stuff/s@^# .*$@@" <%MAKEFILEIN% >junk.c 115sed -e "1,/cpp stuff/s@^# .*$@@" <makefile.in >junk.c
140gcc -E junk.c | sed -f ../msdos/sed1.inp >makefile 116gcc -E junk.c | sed -f ../msdos/sed1.inp >makefile
141rm -f junk.c 117rm -f junk.c
118
142if "%X11%" == "" goto src5 119if "%X11%" == "" goto src5
143mv makefile makefile.tmp 120mv makefile makefile.tmp
144sed -f ../msdos/sed1x.inp <makefile.tmp >makefile 121sed -f ../msdos/sed1x.inp <makefile.tmp >makefile
@@ -153,17 +130,9 @@ cd ..
153rem ---------------------------------------------------------------------- 130rem ----------------------------------------------------------------------
154Echo Configuring the library source directory... 131Echo Configuring the library source directory...
155cd lib-src 132cd lib-src
156set MAKEFILEIN=makefile.in-in
157if exist %MAKEFILEIN% goto libsrc1
158set MAKEFILEIN=makefile-in.in
159if exist %MAKEFILEIN% goto libsrc1
160echo makefile: *** The file originally called "lib-src/Makefile.in.in" cannot be found.
161cd ..
162goto end
163:libsrc1
164rem Create "makefile" from "makefile.in". 133rem Create "makefile" from "makefile.in".
165sed -e "1,/cpp stuff/s@^# .*$@@" <%MAKEFILEIN% >junk.c 134sed -e "1,/cpp stuff/s@^# .*$@@" <makefile.in >junk.c
166gcc -E -I. -I../src junk.c | sed -e "s/^ / /" -e "/^#/d" -e "/^[ ]*$/d" >Makefile.new 135gcc -E -I. -I../src junk.c | sed -e "s/^ / /" -e "/^#/d" -e "/^[ ]*$/d" >makefile.new
167sed -f ../msdos/sed3.inp <makefile.new >makefile 136sed -f ../msdos/sed3.inp <makefile.new >makefile
168rm -f makefile.new junk.c 137rm -f makefile.new junk.c
169if "%nodebug%" == "" goto libsrc2 138if "%nodebug%" == "" goto libsrc2
@@ -189,6 +158,3 @@ rem ----------------------------------------------------------------------
189:end 158:end
190set X11= 159set X11=
191set nodebug= 160set nodebug=
192set MAKEFILEIN=
193set PATHSH=
194set CONFIGH=