summaryrefslogtreecommitdiff
path: root/config.bat
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1994-05-08 20:30:46 +0000
committerRichard M. Stallman <rms@gnu.org>1994-05-08 20:30:46 +0000
commitd70c4f5895b2037fff7bbd5dcdaaec91be362257 (patch)
tree051c47d35c9aff6a2f5564f9872c6d9c2e74e396 /config.bat
parent61220a673ef44add5866c19fa4ef13a8bb147b78 (diff)
downloademacs-d70c4f5895b2037fff7bbd5dcdaaec91be362257.tar.gz
Forcibly remove "# " style comments from makefiles.
Diffstat (limited to 'config.bat')
-rw-r--r--config.bat6
1 files changed, 3 insertions, 3 deletions
diff --git a/config.bat b/config.bat
index dd7922b3766..d2a665dfeb6 100644
--- a/config.bat
+++ b/config.bat
@@ -96,7 +96,7 @@ if exist dir.h ren dir.h vmsdir.h
rem Create "makefile" from "makefile.in.in" using a context patch.
rm -f makefile junk.c
-cp %MAKEFILEIN% junk.c
+sed -e "1,/cpp stuff/s@^# .*$@@" <%MAKEFILEIN% >junk.c
gcc -E junk.c | sed -f ../msdos/sed1.inp >makefile
rm -f junk.c
cd ..
@@ -112,7 +112,7 @@ cd ..
goto end
:libsrc1
rem Create "makefile" from "makefile.in".
-sed -e "s@^# \(Generated.*\)$@/* \1 */@" -e "s@/\*\*/#\(.*\)$@/* \1 */@" <%MAKEFILEIN% >junk.c
+sed -e "1,/cpp stuff/s@^# .*$@@" <%MAKEFILEIN% >junk.c
gcc -E -I. -I../src junk.c | sed -e "s/^ / /" -e "/^#/d" -e "/^[ ]*$/d" >Makefile.new
sed -f ../msdos/sed3.inp <makefile.new >makefile
cd ..
@@ -125,4 +125,4 @@ set X11=
set MAKEFILEIN=
set PATHSH=
set CONFIGH=
-
+