Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/gnu/dist/toolchain/gdb Change the sed expression that commen...



details:   https://anonhg.NetBSD.org/src/rev/6cb7abc44ba3
branches:  trunk
changeset: 526793:6cb7abc44ba3
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Fri May 10 22:01:06 2002 +0000

description:
Change the sed expression that comments out NATDEPFILES to
also comment out continuation lines.  Fixes Linux->NetBSD
cross-gdb when built using NetBSD's make(1) (a'la build.sh -t).

toolchain/16713, Christian Limpach <chris%Pin.LU@localhost>.

Patch also submitted up-stream to GDB.

diffstat:

 gnu/dist/toolchain/gdb/configure    |  3 ++-
 gnu/dist/toolchain/gdb/configure.in |  3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r aab1bec629e3 -r 6cb7abc44ba3 gnu/dist/toolchain/gdb/configure
--- a/gnu/dist/toolchain/gdb/configure  Fri May 10 21:24:51 2002 +0000
+++ b/gnu/dist/toolchain/gdb/configure  Fri May 10 22:01:06 2002 +0000
@@ -8014,7 +8014,8 @@
 cat >> $CONFIG_STATUS <<\EOF
 
 if test "${nativefile}" = ""; then
-sed -e '/^NATDEPFILES[         ]*=[    ]*/s//# NATDEPFILES=/' \
+sed -e '/^NATDEPFILES[         ]*=.*\\$/,/[^\\]$/s/^/# /' \
+    -e '/^NATDEPFILES[         ]*=/s/^/# /' \
        < Makefile > Makefile.tem
 mv -f Makefile.tem Makefile
 fi
diff -r aab1bec629e3 -r 6cb7abc44ba3 gnu/dist/toolchain/gdb/configure.in
--- a/gnu/dist/toolchain/gdb/configure.in       Fri May 10 21:24:51 2002 +0000
+++ b/gnu/dist/toolchain/gdb/configure.in       Fri May 10 22:01:06 2002 +0000
@@ -1007,7 +1007,8 @@
 dnl provided by makefile fragments.
 dnl
 if test "${nativefile}" = ""; then
-sed -e '/^NATDEPFILES[[        ]]*=[[  ]]*/s//# NATDEPFILES=/' \
+sed -e '/^NATDEPFILES[[        ]]*=.*\\$/,/[[^\\]]$/s/^/# /' \
+    -e '/^NATDEPFILES[[        ]]*=/s/^/# /' \
        < Makefile > Makefile.tem
 mv -f Makefile.tem Makefile
 fi



Home | Main Index | Thread Index | Old Index