comparison config.bat @ 15007:5baafbcd9dc2

(djgpp_ver): Variable renamed from djgpp-ver.
author Richard M. Stallman <rms@gnu.org>
date Fri, 12 Apr 1996 15:44:42 +0000
parents 63951d3f3995
children 85feb24c0ac5
comparison
equal deleted inserted replaced
15006:18e09f76bf0c 15007:5baafbcd9dc2
35 rem usual, please use your local mirroring site to reduce trans-Atlantic 35 rem usual, please use your local mirroring site to reduce trans-Atlantic
36 rem traffic. 36 rem traffic.
37 rem ---------------------------------------------------------------------- 37 rem ----------------------------------------------------------------------
38 set X11= 38 set X11=
39 set nodebug= 39 set nodebug=
40 set djgpp-ver= 40 set djgpp_ver=
41 :again 41 :again
42 if "%1" == "" goto usage 42 if "%1" == "" goto usage
43 if "%1" == "--with-x" goto withx 43 if "%1" == "--with-x" goto withx
44 if "%1" == "--no-debug" goto nodebug 44 if "%1" == "--no-debug" goto nodebug
45 if "%1" == "msdos" goto msdos 45 if "%1" == "msdos" goto msdos
110 If ErrorLevel 10 Goto go32Ok 110 If ErrorLevel 10 Goto go32Ok
111 rm -f junk.c junk junk.exe 111 rm -f junk.c junk junk.exe
112 Echo To compile 'Emacs' under MS-DOS you MUST have DJGPP installed! 112 Echo To compile 'Emacs' under MS-DOS you MUST have DJGPP installed!
113 Goto End 113 Goto End
114 :go32Ok 114 :go32Ok
115 set djgpp-ver=1 115 set djgpp_ver=1
116 If ErrorLevel 20 set djgpp-ver=2 116 If ErrorLevel 20 set djgpp_ver=2
117 rm -f junk.c junk junk.exe 117 rm -f junk.c junk junk.exe
118 Echo Configuring for DJGPP Version %DJGPP-VER% ... 118 Echo Configuring for DJGPP Version %DJGPP_VER% ...
119 Rem ---------------------------------------------------------------------- 119 Rem ----------------------------------------------------------------------
120 Echo Configuring the source directory... 120 Echo Configuring the source directory...
121 cd src 121 cd src
122 122
123 rem Create "paths.h" 123 rem Create "paths.h"
139 if exist dir.h ren dir.h vmsdir.h 139 if exist dir.h ren dir.h vmsdir.h
140 140
141 rem Create "makefile" from "makefile.in". 141 rem Create "makefile" from "makefile.in".
142 rm -f makefile junk.c 142 rm -f makefile junk.c
143 sed -e "1,/cpp stuff/s@^# .*$@@" <makefile.in >junk.c 143 sed -e "1,/cpp stuff/s@^# .*$@@" <makefile.in >junk.c
144 If "%DJGPP-VER%" == "1" Goto mfV1 144 If "%DJGPP_VER%" == "1" Goto mfV1
145 gcc -E junk.c | sed -f ../msdos/sed1v2.inp >makefile 145 gcc -E junk.c | sed -f ../msdos/sed1v2.inp >makefile
146 goto mfDone 146 goto mfDone
147 :mfV1 147 :mfV1
148 gcc -E junk.c | sed -f ../msdos/sed1.inp >makefile 148 gcc -E junk.c | sed -f ../msdos/sed1.inp >makefile
149 :mfDone 149 :mfDone
165 Echo Configuring the library source directory... 165 Echo Configuring the library source directory...
166 cd lib-src 166 cd lib-src
167 rem Create "makefile" from "makefile.in". 167 rem Create "makefile" from "makefile.in".
168 sed -e "1,/cpp stuff/s@^# .*$@@" <makefile.in >junk.c 168 sed -e "1,/cpp stuff/s@^# .*$@@" <makefile.in >junk.c
169 gcc -E -I. -I../src junk.c | sed -e "s/^ / /" -e "/^#/d" -e "/^[ ]*$/d" >makefile.new 169 gcc -E -I. -I../src junk.c | sed -e "s/^ / /" -e "/^#/d" -e "/^[ ]*$/d" >makefile.new
170 If "%DJGPP-VER%" == "2" goto libsrc-v2 170 If "%DJGPP_VER%" == "2" goto libsrc-v2
171 sed -f ../msdos/sed3.inp <makefile.new >makefile 171 sed -f ../msdos/sed3.inp <makefile.new >makefile
172 Goto libsrc2 172 Goto libsrc2
173 :libsrc-v2 173 :libsrc-v2
174 sed -f ../msdos/sed3v2.inp <makefile.new >makefile 174 sed -f ../msdos/sed3v2.inp <makefile.new >makefile
175 :libsrc2 175 :libsrc2
191 :oldx2 191 :oldx2
192 cd .. 192 cd ..
193 :oldx1 193 :oldx1
194 rem ---------------------------------------------------------------------- 194 rem ----------------------------------------------------------------------
195 Echo Configuring the main directory... 195 Echo Configuring the main directory...
196 If "%DJGPP-VER%" == "2" copy msdos\mainmake.v2 makefile >nul 196 If "%DJGPP_VER%" == "2" copy msdos\mainmake.v2 makefile >nul
197 If "%DJGPP-VER%" == "1" copy msdos\mainmake makefile >nul 197 If "%DJGPP_VER%" == "1" copy msdos\mainmake makefile >nul
198 rem ---------------------------------------------------------------------- 198 rem ----------------------------------------------------------------------
199 :end 199 :end
200 set X11= 200 set X11=
201 set nodebug= 201 set nodebug=
202 set djgpp-ver= 202 set djgpp_ver=