aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config.bat10
1 files changed, 9 insertions, 1 deletions
diff --git a/config.bat b/config.bat
index d83656c8b20..dd7922b3766 100644
--- a/config.bat
+++ b/config.bat
@@ -103,8 +103,16 @@ cd ..
103rem ---------------------------------------------------------------------- 103rem ----------------------------------------------------------------------
104Echo Configuring the library source directory... 104Echo Configuring the library source directory...
105cd lib-src 105cd lib-src
106set MAKEFILEIN=makefile.in-in
107if exist %MAKEFILEIN% goto libsrc1
108set MAKEFILEIN=makefile-in.in
109if exist %MAKEFILEIN% goto libsrc1
110echo makefile: *** The file originally called "lib-src/Makefile.in.in" cannot be found.
111cd ..
112goto end
113:libsrc1
106rem Create "makefile" from "makefile.in". 114rem Create "makefile" from "makefile.in".
107sed -e "s@^# \(Generated.*\)$@/* \1 */@" -e "s@/\*\*/#\(.*\)$@/* \1 */@" <Makefile.in >junk.c 115sed -e "s@^# \(Generated.*\)$@/* \1 */@" -e "s@/\*\*/#\(.*\)$@/* \1 */@" <%MAKEFILEIN% >junk.c
108gcc -E -I. -I../src junk.c | sed -e "s/^ / /" -e "/^#/d" -e "/^[ ]*$/d" >Makefile.new 116gcc -E -I. -I../src junk.c | sed -e "s/^ / /" -e "/^#/d" -e "/^[ ]*$/d" >Makefile.new
109sed -f ../msdos/sed3.inp <makefile.new >makefile 117sed -f ../msdos/sed3.inp <makefile.new >makefile
110cd .. 118cd ..