emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/compat bf21ecfa79 2/4: Make `make check` work with BSD


From: ELPA Syncer
Subject: [elpa] externals/compat bf21ecfa79 2/4: Make `make check` work with BSD grep and sed
Date: Sat, 9 Sep 2023 06:57:31 -0400 (EDT)

branch: externals/compat
commit bf21ecfa79303fdb310a2e187605db3119f9c724
Author: Mattias EngdegÄrd <mattiase@acm.org>
Commit: Daniel Mendler <mail@daniel-mendler.de>

    Make `make check` work with BSD grep and sed
---
 Makefile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index 64bfd6443e..b6ea1935ad 100644
--- a/Makefile
+++ b/Makefile
@@ -26,15 +26,15 @@ clean:
 
 check:
        @echo "Check: All definitions must link to a test"
-       @! (grep -P "^\\(compat-(def|guard)" *.el | grep -v "compat-tests:")
+       @! (grep -E "^\\(compat-(def|guard)" *.el | grep -v "compat-tests:")
        @echo "Check: All definitions must use compat-def* macros"
-       @! (grep -P "^\\(def" compat-[0-9][0-9].el)
+       @! (grep -E "^\\(def" compat-[0-9][0-9].el)
        @echo "Check: Test links must be valid"
        @grep "(ert-deftest compat-" compat-tests.el | \
                grep -E -v "\\(ert-deftest compat-(function|loaded-features) 
\\(\\)" | \
                sed -E "s/\\(ert-deftest compat-| \\(\\).*//g" | sort > 
/tmp/compat-defs
        @grep "compat-tests:" *.el | \
-               sed -E 
"s/.*<compat-tests:(.+?)>|.*\\[\\[compat-tests:(.+?)\\]\\]/\1\2/g" | \
+               sed -E 
"s/.*<compat-tests:([^)]+)>|.*\\[\\[compat-tests:([^)]+)\\]\\]/\1\2/g" | \
                sort | uniq > /tmp/compat-links
        @ (diff /tmp/compat-defs /tmp/compat-defs)
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]