Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/cddl/osnet/dist/lib/libdtrace/common detect dynamic...
details: https://anonhg.NetBSD.org/src/rev/367a83707743
branches: trunk
changeset: 340767:367a83707743
user: christos <christos%NetBSD.org@localhost>
date: Tue Sep 29 23:50:52 2015 +0000
description:
detect dynamically if we need -e for echo
diffstat:
external/cddl/osnet/dist/lib/libdtrace/common/mkerrtags.sh | 5 ++++-
external/cddl/osnet/dist/lib/libdtrace/common/mknames.sh | 4 +++-
2 files changed, 7 insertions(+), 2 deletions(-)
diffs (29 lines):
diff -r ee8964fb636f -r 367a83707743 external/cddl/osnet/dist/lib/libdtrace/common/mkerrtags.sh
--- a/external/cddl/osnet/dist/lib/libdtrace/common/mkerrtags.sh Tue Sep 29 23:50:17 2015 +0000
+++ b/external/cddl/osnet/dist/lib/libdtrace/common/mkerrtags.sh Tue Sep 29 23:50:52 2015 +0000
@@ -26,7 +26,10 @@
#
#ident "%Z%%M% %I% %E% SMI"
-BSDECHO=-e
+
+if [ "x$(echo -e)" != "x-e" ]; then
+ BSDECHO=-e
+fi
echo ${BSDECHO} "\
/*\n\
diff -r ee8964fb636f -r 367a83707743 external/cddl/osnet/dist/lib/libdtrace/common/mknames.sh
--- a/external/cddl/osnet/dist/lib/libdtrace/common/mknames.sh Tue Sep 29 23:50:17 2015 +0000
+++ b/external/cddl/osnet/dist/lib/libdtrace/common/mknames.sh Tue Sep 29 23:50:52 2015 +0000
@@ -26,7 +26,9 @@
#
#ident "%Z%%M% %I% %E% SMI"
-BSDECHO=-e
+if [ "x$(echo -e)" != "x-e" ]; then
+ BSDECHO=-e
+fi
echo ${BSDECHO} "\
/*\n\
Home |
Main Index |
Thread Index |
Old Index