diff options
author | jb <jb@FreeBSD.org> | 2008-04-26 04:03:58 +0000 |
---|---|---|
committer | jb <jb@FreeBSD.org> | 2008-04-26 04:03:58 +0000 |
commit | 6e4e8caae1ee235e8c5322f40546e4b94ccfa800 (patch) | |
tree | 4b78440bb7b57b9eacb1a0665022c895ca0b5898 | |
parent | 17d482cf8c4ccc069ec0b163071ae7dc7d416184 (diff) | |
download | FreeBSD-src-6e4e8caae1ee235e8c5322f40546e4b94ccfa800.zip FreeBSD-src-6e4e8caae1ee235e8c5322f40546e4b94ccfa800.tar.gz |
'echo' behaviour differs between SYSV and BSD.
-rw-r--r-- | cddl/contrib/opensolaris/lib/libdtrace/common/mkerrtags.sh | 6 | ||||
-rw-r--r-- | cddl/contrib/opensolaris/lib/libdtrace/common/mknames.sh | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/cddl/contrib/opensolaris/lib/libdtrace/common/mkerrtags.sh b/cddl/contrib/opensolaris/lib/libdtrace/common/mkerrtags.sh index 67a696f..d5651ff 100644 --- a/cddl/contrib/opensolaris/lib/libdtrace/common/mkerrtags.sh +++ b/cddl/contrib/opensolaris/lib/libdtrace/common/mkerrtags.sh @@ -26,7 +26,9 @@ # #ident "%Z%%M% %I% %E% SMI" -echo "\ +BSDECHO=-e + +echo ${BSDECHO} "\ /*\n\ * Copyright 2003 Sun Microsystems, Inc. All rights reserved.\n\ * Use is subject to license terms.\n\ @@ -43,7 +45,7 @@ replace=' "\1",' sed -n "s/$pattern/$replace/p" || exit 1 -echo "\ +echo ${BSDECHO} "\ };\n\ \n\ static const int _dt_ntag = sizeof (_dt_errtags) / sizeof (_dt_errtags[0]);\n\ diff --git a/cddl/contrib/opensolaris/lib/libdtrace/common/mknames.sh b/cddl/contrib/opensolaris/lib/libdtrace/common/mknames.sh index 7f90b7d..2fdc2fa 100644 --- a/cddl/contrib/opensolaris/lib/libdtrace/common/mknames.sh +++ b/cddl/contrib/opensolaris/lib/libdtrace/common/mknames.sh @@ -26,7 +26,9 @@ # #ident "%Z%%M% %I% %E% SMI" -echo "\ +BSDECHO=-e + +echo ${BSDECHO} "\ /*\n\ * Copyright 2005 Sun Microsystems, Inc. All rights reserved.\n\ * Use is subject to license terms.\n\ @@ -47,7 +49,7 @@ nawk ' printf("\tcase %s: return (\"%s\");\n", $2, tolower(substr($2, 10))); }' -echo "\ +echo ${BSDECHO} "\ default: return (\"unknown\");\n\ }\n\ }" |