mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-24 10:38:38 +00:00
Forcibly remove "# " style comments from makefiles.
This commit is contained in:
parent
726d0798d6
commit
02b81698a5
@ -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 ..
|
||||
|
Loading…
Reference in New Issue
Block a user