]> git.eshelyaron.com Git - emacs.git/commitdiff
Forcibly remove "# " style comments from makefiles.
authorRichard M. Stallman <rms@gnu.org>
Sun, 8 May 1994 20:30:46 +0000 (20:30 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 8 May 1994 20:30:46 +0000 (20:30 +0000)
config.bat

index dd7922b37660c6ceede482cc206ef633c87cbf87..d2a665dfeb624f39e327a5aee038e8cf130a6ca0 100644 (file)
@@ -96,7 +96,7 @@ if exist dir.h ren dir.h vmsdir.h
 \r
 rem   Create "makefile" from "makefile.in.in" using a context patch.\r
 rm -f makefile junk.c\r
-cp %MAKEFILEIN% junk.c\r
+sed -e "1,/cpp stuff/s@^# .*$@@" <%MAKEFILEIN% >junk.c\r
 gcc -E junk.c | sed -f ../msdos/sed1.inp >makefile\r
 rm -f junk.c\r
 cd ..\r
@@ -112,7 +112,7 @@ cd ..
 goto end\r
 :libsrc1\r
 rem   Create "makefile" from "makefile.in".\r
-sed -e "s@^# \(Generated.*\)$@/* \1 */@" -e "s@/\*\*/#\(.*\)$@/* \1 */@" <%MAKEFILEIN% >junk.c\r
+sed -e "1,/cpp stuff/s@^# .*$@@" <%MAKEFILEIN% >junk.c\r
 gcc -E -I. -I../src junk.c | sed -e "s/^ /     /" -e "/^#/d" -e "/^[   \f]*$/d" >Makefile.new\r
 sed -f ../msdos/sed3.inp <makefile.new >makefile\r
 cd ..\r
@@ -125,4 +125,4 @@ set X11=
 set MAKEFILEIN=\r
 set PATHSH=\r
 set CONFIGH=\r
-
+\r