summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2017-11-29 02:10:15 +0000
committerchristos <christos@NetBSD.org>2017-11-29 02:10:15 +0000
commit7cbdd50b00a899ac04a3ea7aac742dcb87edba3f (patch)
treea263d6fb9054c5a7cf50602c2a9a74a559c6f7e4 /tools
parent3487447947e9f4f073fdb39dcd6ebc00180b00be (diff)
since gmake does not have :Q handle it in sed...
Diffstat (limited to 'tools')
-rw-r--r--tools/gcc/mknative.common9
1 files changed, 5 insertions, 4 deletions
diff --git a/tools/gcc/mknative.common b/tools/gcc/mknative.common
index c6ec41f51ca..3b13821a9de 100644
--- a/tools/gcc/mknative.common
+++ b/tools/gcc/mknative.common
@@ -1,4 +1,4 @@
-# $NetBSD: mknative.common,v 1.12 2017/11/28 22:05:57 christos Exp $
+# $NetBSD: mknative.common,v 1.13 2017/11/29 02:10:15 christos Exp $
#
# from: NetBSD: mknative,v 1.12 2003/03/05 06:17:17 mrg Exp
#
@@ -28,7 +28,8 @@ getvars()
_mf=$(basename "$_TMPDIR/$_mfp")
env MAKEFLAGS= $MAKE -C "$_dir" --quiet -f - -f "$_mf" _x_ <<EOF || bomb "getvars $_mf $* failed"
define echo_var
- @echo G_\${var}="\${\${var}}" | sed -e 's,\([^\.]\)\./\([a-zA-Z0-9_-]*\.o\),\1\2,g' -e 's,$_VPATH,\$\${GNUHOSTDIST},g' -e 's,$_GNU_DIST,\$\${GNUHOSTDIST},g'
+ @echo G_\${var}="\${\${var}}" | sed -e 's,\([^\.]\)\./\([a-zA-Z0-9_-]*\.o\),\1\2,g' -e 's,$_VPATH,\$\${GNUHOSTDIST},g' -e 's,$_GNU_DIST,\$\${GNUHOSTDIST},g' -e 's/"/\\"/g' -e "s/'/"'\\"/g'
+
endef
_x_:
@@ -64,7 +65,7 @@ write_c()
echo '/* This file is automatically generated. DO NOT EDIT! */' >$_TOP/$1.tmp || \
bomb "cannot create $1"
grep '$''NetBSD' $0 | sed 's,[ #$],,g;s,.*,/* Generated from: & */,' >>$_TOP/$1.tmp
- echo '$NetBSD: mknative.common,v 1.12 2017/11/28 22:05:57 christos Exp $' | sed 's,[#$],,g;s,.*,/* Generated from: & */,' >>$_TOP/$1.tmp
+ echo '$NetBSD: mknative.common,v 1.13 2017/11/29 02:10:15 christos Exp $' | sed 's,[#$],,g;s,.*,/* Generated from: & */,' >>$_TOP/$1.tmp
echo '' >>$_TOP/$1.tmp
writefile $1
}
@@ -76,7 +77,7 @@ write_mk()
echo '# This file is automatically generated. DO NOT EDIT!' >$_TOP/$1.tmp || \
bomb "cannot create $1"
grep '$''NetBSD' $0 | sed 's,[ #$],,g;s,.*,# Generated from: &,' >>$_TOP/$1.tmp
- echo '$NetBSD: mknative.common,v 1.12 2017/11/28 22:05:57 christos Exp $' | sed 's,[#$],,g;s,.*,# Generated from: &,' >>$_TOP/$1.tmp
+ echo '$NetBSD: mknative.common,v 1.13 2017/11/29 02:10:15 christos Exp $' | sed 's,[#$],,g;s,.*,# Generated from: &,' >>$_TOP/$1.tmp
echo '#' >>$_TOP/$1.tmp
writefile $1
}