aboutsummaryrefslogtreecommitdiff
path: root/cddl/contrib/opensolaris/lib/libdtrace/common/mksignal.sh
diff options
context:
space:
mode:
authorAlex Richardson <arichardson@FreeBSD.org>2020-08-11 16:46:54 +0000
committerAlex Richardson <arichardson@FreeBSD.org>2020-08-11 16:46:54 +0000
commitfded98749a40d1adcdff10bceba9de6cf90b3097 (patch)
tree5f8477569f751d9e2592314b9464f847a81b3c20 /cddl/contrib/opensolaris/lib/libdtrace/common/mksignal.sh
parentf57b27e3f85b468033c3c91c7f2f2e90aa2e8a04 (diff)
downloadsrc-fded98749a40d1adcdff10bceba9de6cf90b3097.tar.gz
src-fded98749a40d1adcdff10bceba9de6cf90b3097.zip
Fix libdtrace build with zsh as /bin/sh
When zsh runs in POSIX sh mode it does not support the -e flag to echo. Use printf instead of echo to avoid the "-e" characters being printed. Obtained from: CheriBSD Reviewed By: markj Differential Revision: https://reviews.freebsd.org/D26026
Notes
Notes: svn path=/head/; revision=364124
Diffstat (limited to 'cddl/contrib/opensolaris/lib/libdtrace/common/mksignal.sh')
-rwxr-xr-xcddl/contrib/opensolaris/lib/libdtrace/common/mksignal.sh15
1 files changed, 7 insertions, 8 deletions
diff --git a/cddl/contrib/opensolaris/lib/libdtrace/common/mksignal.sh b/cddl/contrib/opensolaris/lib/libdtrace/common/mksignal.sh
index dce06a0e1797..2bd5ec92b43e 100755
--- a/cddl/contrib/opensolaris/lib/libdtrace/common/mksignal.sh
+++ b/cddl/contrib/opensolaris/lib/libdtrace/common/mksignal.sh
@@ -24,16 +24,15 @@
# Copyright 2003 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
-#ident "%Z%%M% %I% %E% SMI"
set -e
-echo "\
-/*\n\
- * Copyright 2003 Sun Microsystems, Inc. All rights reserved.\n\
- * Use is subject to license terms.\n\
- */\n\
-\n\
-#pragma ident\t\"%Z%%M%\t%I%\t%E% SMI\"\n"
+printf "%s" "
+/*
+ * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
+ * Use is subject to license terms.
+ */
+
+"
pattern='^#define[ ]*_*\(SIG[A-Z0-9]*\)[ ]\{1,\}\([A-Z0-9]*\).*$'
replace='inline int \1 = \2;@#pragma D binding "1.0" \1'