Source-Changes-HG archive

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

[src/trunk]: src/tools/gcc use the variable for the source dir instead of dup...



details:   https://anonhg.NetBSD.org/src/rev/25eedbf01ef2
branches:  trunk
changeset: 826896:25eedbf01ef2
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Oct 04 21:42:20 2017 +0000

description:
use the variable for the source dir instead of duplicating it.

diffstat:

 tools/gcc/mknative-gcc     |  4 ++--
 tools/gcc/mknative-gcc.old |  4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diffs (38 lines):

diff -r d7558a297b56 -r 25eedbf01ef2 tools/gcc/mknative-gcc
--- a/tools/gcc/mknative-gcc    Wed Oct 04 21:29:43 2017 +0000
+++ b/tools/gcc/mknative-gcc    Wed Oct 04 21:42:20 2017 +0000
@@ -1,5 +1,5 @@
 #!/bin/sh
-#      $NetBSD: mknative-gcc,v 1.89 2016/10/05 19:25:49 christos Exp $
+#      $NetBSD: mknative-gcc,v 1.90 2017/10/04 21:42:20 christos Exp $
 #
 # Shell script for generating all the constants needed for a native
 # platform build of gcc.
@@ -380,7 +380,7 @@
 
        # special transforms
        for f in gtyp-input.list; do
-               sed -e 's/^.*external\/gpl3\/gcc\/dist/SRCDIR/' < $_TMPDIR/gcc/$f > $_OUTDIR/usr.bin/$_subdir/arch/$MACHINE_ARCH/$f
+               sed -e "s@^.*$_OUTDIRBASE/dist@SRCDIR@" < $_TMPDIR/gcc/$f > $_OUTDIR/usr.bin/$_subdir/arch/$MACHINE_ARCH/$f
        done
 
        # special platforms
diff -r d7558a297b56 -r 25eedbf01ef2 tools/gcc/mknative-gcc.old
--- a/tools/gcc/mknative-gcc.old        Wed Oct 04 21:29:43 2017 +0000
+++ b/tools/gcc/mknative-gcc.old        Wed Oct 04 21:42:20 2017 +0000
@@ -1,5 +1,5 @@
 #!/bin/sh
-#      $NetBSD: mknative-gcc.old,v 1.4 2017/10/04 21:29:43 christos Exp $
+#      $NetBSD: mknative-gcc.old,v 1.5 2017/10/04 21:42:20 christos Exp $
 #
 # Shell script for generating all the constants needed for a native
 # platform build of gcc.
@@ -380,7 +380,7 @@
 
        # special transforms
        for f in gtyp-input.list; do
-               sed -e 's/^.*external\/gpl3\/gcc\/dist/SRCDIR/' < $_TMPDIR/gcc/$f > $_OUTDIR/usr.bin/$_subdir/arch/$MACHINE_ARCH/$f
+               sed -e "s@^.*$_OUTDIRBASE/dist@SRCDIR@" < $_TMPDIR/gcc/$f > $_OUTDIR/usr.bin/$_subdir/arch/$MACHINE_ARCH/$f
        done
 
        # special platforms



Home | Main Index | Thread Index | Old Index