From e0ad86cdff6de67821c0fad4ebff351be4b9987f Mon Sep 17 00:00:00 2001 From: perky Date: Mon, 9 Sep 2002 05:04:55 +0000 Subject: Hide error message from grep when DESTDIR is set to a bogus value. Submitted by: kris --- misc/utf8locale/Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'misc') diff --git a/misc/utf8locale/Makefile b/misc/utf8locale/Makefile index 927d07e968c0..3fac1d08bb93 100644 --- a/misc/utf8locale/Makefile +++ b/misc/utf8locale/Makefile @@ -19,7 +19,10 @@ BASELOCALEDIR= ${DESTDIR}/usr/share/locale PLIST_SUB= BASELOCALEDIR=${BASELOCALEDIR} \ LANGS="${LANGS}" -_HAVE_SWIDTH!= grep _CTYPE_SW ${DESTDIR}/usr/include/ctype.h || true +.include + +_HAVE_SWIDTH!= ${GREP} _CTYPE_SW ${DESTDIR}/usr/include/ctype.h 2>/dev/null \ + || ${TRUE} .if empty(_HAVE_SWIDTH) PKGNAMESUFFIX= -without-swidth .endif @@ -30,4 +33,4 @@ post-install: ${BASELOCALEDIR}/${lang}.UTF-8 .endfor -.include +.include -- cgit