Commit 02b81698 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

Forcibly remove "# " style comments from makefiles.

parent 726d0798
......@@ -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=
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment