diff options
author | obache <obache@pkgsrc.org> | 2013-10-31 12:18:19 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2013-10-31 12:18:19 +0000 |
commit | 10f8e8d967cb72d3524f600b4619c4fe85811a20 (patch) | |
tree | 62dfcfc96d173520348927cdf15a13ac92cabf99 /devel/bmake/files/unit-tests/modts | |
parent | ce8728c9e74e707320df99809381f31f7fc64fc2 (diff) | |
download | pkgsrc-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/modts | 4 |
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 |