Mercurial > emacs
comparison config.bat @ 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 | 68d20ebaf64e |
children | 41a42a288277 |
comparison
equal
deleted
inserted
replaced
7405:a25ee02b41c8 | 7406:5d428cbd38ec |
---|---|
94 rem On my system dir.h gets in the way. It's a VMS file so who cares. | 94 rem On my system dir.h gets in the way. It's a VMS file so who cares. |
95 if exist dir.h ren dir.h vmsdir.h | 95 if exist dir.h ren dir.h vmsdir.h |
96 | 96 |
97 rem Create "makefile" from "makefile.in.in" using a context patch. | 97 rem Create "makefile" from "makefile.in.in" using a context patch. |
98 rm -f makefile junk.c | 98 rm -f makefile junk.c |
99 cp %MAKEFILEIN% junk.c | 99 sed -e "1,/cpp stuff/s@^# .*$@@" <%MAKEFILEIN% >junk.c |
100 gcc -E junk.c | sed -f ../msdos/sed1.inp >makefile | 100 gcc -E junk.c | sed -f ../msdos/sed1.inp >makefile |
101 rm -f junk.c | 101 rm -f junk.c |
102 cd .. | 102 cd .. |
103 rem ---------------------------------------------------------------------- | 103 rem ---------------------------------------------------------------------- |
104 Echo Configuring the library source directory... | 104 Echo Configuring the library source directory... |
110 echo makefile: *** The file originally called "lib-src/Makefile.in.in" cannot be found. | 110 echo makefile: *** The file originally called "lib-src/Makefile.in.in" cannot be found. |
111 cd .. | 111 cd .. |
112 goto end | 112 goto end |
113 :libsrc1 | 113 :libsrc1 |
114 rem Create "makefile" from "makefile.in". | 114 rem Create "makefile" from "makefile.in". |
115 sed -e "s@^# \(Generated.*\)$@/* \1 */@" -e "s@/\*\*/#\(.*\)$@/* \1 */@" <%MAKEFILEIN% >junk.c | 115 sed -e "1,/cpp stuff/s@^# .*$@@" <%MAKEFILEIN% >junk.c |
116 gcc -E -I. -I../src junk.c | sed -e "s/^ / /" -e "/^#/d" -e "/^[ ]*$/d" >Makefile.new | 116 gcc -E -I. -I../src junk.c | sed -e "s/^ / /" -e "/^#/d" -e "/^[ ]*$/d" >Makefile.new |
117 sed -f ../msdos/sed3.inp <makefile.new >makefile | 117 sed -f ../msdos/sed3.inp <makefile.new >makefile |
118 cd .. | 118 cd .. |
119 rem ---------------------------------------------------------------------- | 119 rem ---------------------------------------------------------------------- |
120 Echo Configuring the main directory... | 120 Echo Configuring the main directory... |