changeset 7406:5d428cbd38ec

Forcibly remove "# " style comments from makefiles.
author Richard M. Stallman <rms@gnu.org>
date Sun, 08 May 1994 20:30:46 +0000
parents a25ee02b41c8
children 565b1e27c14c
files config.bat
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/config.bat	Sun May 08 19:51:59 1994 +0000
+++ b/config.bat	Sun May 08 20:30:46 1994 +0000
@@ -96,7 +96,7 @@
 
 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 @@
 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 MAKEFILEIN=
 set PATHSH=
 set CONFIGH=
-
+