From f809ba14df46558ba67ed0b6c3b8a31658774283 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Tue, 6 Sep 2022 20:40:14 -0400 Subject: build: Fix regex in make check make check fails when /bin/sh is dash, since dash doesn't support $''. Commit 37dc3f5 ("build: check for trailing whitespace") added the $'' usage, presumably because it was noticed that grep doesn't accept \t. Fix this by using [:blank:] instead. Bug: https://bugs.gentoo.org/856436 --- Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 3cdbcb8..8126a0e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -18,5 +18,5 @@ apns-conf.xml: $(top_srcdir)/apns-conf.xsl $(top_srcdir)/$(SP_XML_DB) pkgdata_DATA = apns-conf.xml check-local: - grep $$'^[\t ]* <\|[ \t]$$' serviceproviders.xml && exit 1 || : + grep '^[[:blank:]]* <\|[[:blank:]]$$' serviceproviders.xml && exit 1 || : xmllint --valid $(top_srcdir)/$(SP_XML_DB) 2>&1 >/dev/null -- cgit v1.2.1