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 DTrace: Explic...



details:   https://anonhg.NetBSD.org/src/rev/19fb4a887689
branches:  trunk
changeset: 752727:19fb4a887689
user:      darran <darran%NetBSD.org@localhost>
date:      Fri Mar 05 01:34:35 2010 +0000

description:
DTrace: Explicitly check for OS X to decide if echo needs -e.

diffstat:

 external/cddl/osnet/dist/lib/libdtrace/common/mkerrtags.sh |  6 +++++-
 external/cddl/osnet/dist/lib/libdtrace/common/mknames.sh   |  6 +++++-
 2 files changed, 10 insertions(+), 2 deletions(-)

diffs (32 lines):

diff -r 15deb96083e2 -r 19fb4a887689 external/cddl/osnet/dist/lib/libdtrace/common/mkerrtags.sh
--- a/external/cddl/osnet/dist/lib/libdtrace/common/mkerrtags.sh        Fri Mar 05 00:54:01 2010 +0000
+++ b/external/cddl/osnet/dist/lib/libdtrace/common/mkerrtags.sh        Fri Mar 05 01:34:35 2010 +0000
@@ -26,7 +26,11 @@
 #
 #ident "%Z%%M% %I%     %E% SMI"
 
-BSDECHO=
+if [[ $(uname) = "Darwin" ]]; then
+    BSDECHO=
+else
+    BSDECHO=-e
+fi
 
 echo ${BSDECHO} "\
 /*\n\
diff -r 15deb96083e2 -r 19fb4a887689 external/cddl/osnet/dist/lib/libdtrace/common/mknames.sh
--- a/external/cddl/osnet/dist/lib/libdtrace/common/mknames.sh  Fri Mar 05 00:54:01 2010 +0000
+++ b/external/cddl/osnet/dist/lib/libdtrace/common/mknames.sh  Fri Mar 05 01:34:35 2010 +0000
@@ -26,7 +26,11 @@
 #
 #ident "%Z%%M% %I%     %E% SMI"
 
-BSDECHO=
+if [[ $(uname) = "Darwin" ]]; then
+    BSDECHO=
+else
+    BSDECHO=-e
+fi
 
 echo ${BSDECHO} "\
 /*\n\



Home | Main Index | Thread Index | Old Index