]> code.delx.au - gnu-emacs/commitdiff
(lib-src): Recognize comment lines in Makefile.in
authorEli Zaretskii <eliz@gnu.org>
Sun, 4 Apr 2004 20:53:04 +0000 (20:53 +0000)
committerEli Zaretskii <eliz@gnu.org>
Sun, 4 Apr 2004 20:53:04 +0000 (20:53 +0000)
that have a TAB after the #, to avoid errors in preprocessing
with GCC 3.3.3.

config.bat

index bfadf3d5575643604d7fb12ffd8419bc99e48c32..732c4021aaf6c4a988acf42815ef8f69d8a86736 100644 (file)
@@ -1,7 +1,7 @@
 @echo off\r
 rem   ----------------------------------------------------------------------\r
 rem   Configuration script for MSDOS\r
-rem   Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2001\r
+rem   Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2001, 2004\r
 rem   Free Software Foundation, Inc.\r
 \r
 rem   This file is part of GNU Emacs.\r
@@ -191,7 +191,7 @@ rem   ----------------------------------------------------------------------
 Echo Configuring the library source directory...\r
 cd lib-src\r
 rem   Create "makefile" from "makefile.in".\r
-sed -e "1,/== start of cpp stuff ==/s@^# .*$@@" <Makefile.in >junk.c\r
+sed -e "1,/== start of cpp stuff ==/s@^#[      ].*$@@" <Makefile.in >junk.c\r
 gcc -E -traditional -I. -I../src junk.c | sed -e "s/^ /        /" -e "/^#/d" -e "/^[   \f]*$/d" >makefile.new\r
 If "%DJGPP_VER%" == "2" goto libsrc-v2\r
 sed -f ../msdos/sed3.inp <makefile.new >Makefile\r
@@ -276,7 +276,7 @@ set $foo$=
 set X11=\r
 set nodebug=\r
 set djgpp_ver=\r
-
-goto skipArchTag
-   arch-tag: 2d2fed23-4dc6-4006-a2e4-49daf0031f33
-:skipArchTag
+\r
+goto skipArchTag\r
+   arch-tag: 2d2fed23-4dc6-4006-a2e4-49daf0031f33\r
+:skipArchTag\r