Module Name: src
Committed By: christos
Date: Wed Oct 4 21:42:20 UTC 2017
Modified Files:
src/tools/gcc: mknative-gcc mknative-gcc.old
Log Message:
use the variable for the source dir instead of duplicating it.
To generate a diff of this commit:
cvs rdiff -u -r1.89 -r1.90 src/tools/gcc/mknative-gcc
cvs rdiff -u -r1.4 -r1.5 src/tools/gcc/mknative-gcc.old
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/tools/gcc/mknative-gcc
diff -u src/tools/gcc/mknative-gcc:1.89 src/tools/gcc/mknative-gcc:1.90
--- src/tools/gcc/mknative-gcc:1.89 Wed Oct 5 15:25:49 2016
+++ src/tools/gcc/mknative-gcc Wed Oct 4 17:42:20 2017
@@ -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 @@ __EOF__
# 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
Index: src/tools/gcc/mknative-gcc.old
diff -u src/tools/gcc/mknative-gcc.old:1.4 src/tools/gcc/mknative-gcc.old:1.5
--- src/tools/gcc/mknative-gcc.old:1.4 Wed Oct 4 17:29:43 2017
+++ src/tools/gcc/mknative-gcc.old Wed Oct 4 17:42:20 2017
@@ -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 @@ __EOF__
# 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