summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2022-09-06 20:40:14 -0400
committerMatt Turner <mattst88@gmail.com>2022-09-06 20:40:14 -0400
commitf809ba14df46558ba67ed0b6c3b8a31658774283 (patch)
tree94e7b0756b551f89a73ebdedad7ebc36d1569e55
parent7d3701eb20d5913c052f29b358bbde83b97de7eb (diff)
downloadmobile-broadband-provider-info-f809ba14df46558ba67ed0b6c3b8a31658774283.tar.gz
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
-rw-r--r--Makefile.am2
1 files changed, 1 insertions, 1 deletions
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