Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH/RFA] Fix NATDEPFILES sed expression to comment out cont's
@ 2002-05-10 14:58 Jason R Thorpe
  2002-05-10 16:50 ` Andrew Cagney
  0 siblings, 1 reply; 3+ messages in thread
From: Jason R Thorpe @ 2002-05-10 14:58 UTC (permalink / raw)
  To: gdb-patches

[-- Attachment #1: Type: text/plain, Size: 882 bytes --]

The following was submitted as a bug report to NetBSD.  The sed
expression that comments out NATDEPFILES does not comment out
continuation lines.  BSD's make(1) doesn't like this (the \ at
the end of the line is ignored, just as the rest of the line following
the comment character is, as it should be).

The following tweak to the sed expression fixes the problem by also
commenting out continuation lines.

Before:

# NATDEPFILES=infptrace.o inftarg.o fork-child.o \
	corelow.o \
	alphabsd-nat.o alphanbsd-nat.o

After:

# NATDEPFILES= infptrace.o inftarg.o fork-child.o \
#	corelow.o \
#	alphabsd-nat.o alphanbsd-nat.o

OK to commit?

2002-05-10  Christian Limpach  <chris@Pin.LU>

	* configure.in: Change sed expression which comments out
	NATDEPFILES to also comment out continuation lines.
	* configure: Regenerate.

-- 
        -- Jason R. Thorpe <thorpej@wasabisystems.com>

[-- Attachment #2: configure-patch --]
[-- Type: text/plain, Size: 660 bytes --]

Index: configure.in
===================================================================
RCS file: /cvs/src/src/gdb/configure.in,v
retrieving revision 1.86
diff -u -r1.86 configure.in
--- configure.in	11 Apr 2002 18:32:50 -0000	1.86
+++ configure.in	10 May 2002 21:51:29 -0000
@@ -1366,7 +1366,8 @@
 dnl
 if test "${nativefile}" = ""; then
         < Makefile \
-        sed -e '/^NATDEPFILES[[ 	]]*=[[ 	]]*/s//# NATDEPFILES=/' \
+        sed -e '/^NATDEPFILES[[ 	]]*=.*\\$/,/[[^\\]]$/s/^/# /' \
+            -e '/^NATDEPFILES[[ 	]]*=/s/^/# /' \
         | sed -e '/^\(NATDEPFILES[[ 	]]*[[+]]=[[ 	]]*\)/s//# \1/' \
 	> Makefile.tem
 mv -f Makefile.tem Makefile

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-05-11  0:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-10 14:58 [PATCH/RFA] Fix NATDEPFILES sed expression to comment out cont's Jason R Thorpe
2002-05-10 16:50 ` Andrew Cagney
2002-05-10 17:40   ` Jason R Thorpe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox