mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-25 10:47:00 +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.
|
rem Create "makefile" from "makefile.in.in" using a context patch.
|
||||||
rm -f makefile junk.c
|
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
|
gcc -E junk.c | sed -f ../msdos/sed1.inp >makefile
|
||||||
rm -f junk.c
|
rm -f junk.c
|
||||||
cd ..
|
cd ..
|
||||||
@ -112,7 +112,7 @@ cd ..
|
|||||||
goto end
|
goto end
|
||||||
:libsrc1
|
:libsrc1
|
||||||
rem Create "makefile" from "makefile.in".
|
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
|
gcc -E -I. -I../src junk.c | sed -e "s/^ / /" -e "/^#/d" -e "/^[ ]*$/d" >Makefile.new
|
||||||
sed -f ../msdos/sed3.inp <makefile.new >makefile
|
sed -f ../msdos/sed3.inp <makefile.new >makefile
|
||||||
cd ..
|
cd ..
|
||||||
|
Loading…
Reference in New Issue
Block a user