summaryrefslogtreecommitdiff
path: root/devel/bmake/files/unit-tests/modts
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2013-10-31 12:18:19 +0000
committerobache <obache@pkgsrc.org>2013-10-31 12:18:19 +0000
commit10f8e8d967cb72d3524f600b4619c4fe85811a20 (patch)
tree62dfcfc96d173520348927cdf15a13ac92cabf99 /devel/bmake/files/unit-tests/modts
parentce8728c9e74e707320df99809381f31f7fc64fc2 (diff)
downloadpkgsrc-10f8e8d967cb72d3524f600b4619c4fe85811a20.tar.gz
Take care for the case missing `type' command, PR pkg/48089.
No objection from MAINTAINER over 3 month.
Diffstat (limited to 'devel/bmake/files/unit-tests/modts')
-rw-r--r--devel/bmake/files/unit-tests/modts4
1 files changed, 2 insertions, 2 deletions
diff --git a/devel/bmake/files/unit-tests/modts b/devel/bmake/files/unit-tests/modts
index 616bd8944f2..54b3d3d2ffa 100644
--- a/devel/bmake/files/unit-tests/modts
+++ b/devel/bmake/files/unit-tests/modts
@@ -12,9 +12,9 @@ all: mod-ts
# Use print or printf iff they are builtin.
# XXX note that this causes problems, when make decides
# there is no need to use a shell, so avoid where possible.
-.if ${type print 2> /dev/null || echo:L:sh:Mbuiltin} != ""
+.if ${(type print) 2> /dev/null || echo:L:sh:Mbuiltin} != ""
PRINT= print -r --
-.elif ${type printf 2> /dev/null || echo:L:sh:Mbuiltin} != ""
+.elif ${(type printf) 2> /dev/null || echo:L:sh:Mbuiltin} != ""
PRINT= printf '%s\n'
.else
PRINT= echo