[mobile-broadband-provider-info: 1/4] build: Fix regex in make check




commit f809ba14df46558ba67ed0b6c3b8a31658774283
Author: Matt Turner <mattst88 gmail com>
Date:   Tue Sep 6 20:40:14 2022 -0400

    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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]