]> git.eshelyaron.com Git - emacs.git/commitdiff
Use "grep -E" instead of deprecated "egrep"
authorStefan Kangas <stefan@marxist.se>
Wed, 10 Nov 2021 15:30:50 +0000 (16:30 +0100)
committerStefan Kangas <stefan@marxist.se>
Wed, 10 Nov 2021 15:30:50 +0000 (16:30 +0100)
* admin/emake:
* test/lisp/so-long-tests/so-long-tests.el: Use "grep -E" instead of
deprecated "egrep".

admin/emake
test/lisp/so-long-tests/so-long-tests.el

index 8c37c1605554b96a805dbd0526a873084cb35bb9..2ff553289daf6145939c041d02d02aff0392413c 100755 (executable)
@@ -13,7 +13,7 @@ cores=1
 
 # Determine the number of cores.
 if [ -f /proc/cpuinfo ]; then
-    cores=$(($(egrep "^physical id|^cpu cores" /proc/cpuinfo |\
+    cores=$(($(grep -E "^physical id|^cpu cores" /proc/cpuinfo |\
        awk '{ print $4; }' |\
        sed '$!N;s/\n/ /' |\
        uniq |\
@@ -30,7 +30,7 @@ s#^Configured for # Configured for #
 s#^./temacs.*#  \\& #
 s#^make.*Error#  \\& #
 ' | \
-egrep --line-buffered -v "^make|\
+grep -E --line-buffered -v "^make|\
 ^Loading|\
 SCRAPE|\
 INFO.*Scraping.*[.] ?\$|\
@@ -93,4 +93,4 @@ done
 # changed since last time.
 make -j$cores check-maybe 2>&1 | \
     sed -n '/contained unexpected results/,$p' | \
-    egrep --line-buffered -v "^make"
+    grep -E --line-buffered -v "^make"
index 7eee345aadde6ba5cc52295697a4bdf72ebe38a1..cda5ae497fd6554ebef07b6612107ba4772c6dc5 100644 (file)
@@ -32,7 +32,7 @@
 ;; Running manually:
 ;;
 ;; for test in lisp/so-long-tests/*-tests.el; do make ${test%.el}; done \
-;; 2>&1 | egrep -v '^(Loading|Source file|make|Changed to so-long-mode)'
+;; 2>&1 | grep -E -v '^(Loading|Source file|make|Changed to so-long-mode)'
 ;;
 ;; Which is equivalent to:
 ;;
@@ -41,7 +41,7 @@
 ;; "../src/emacs" --no-init-file --no-site-file --no-site-lisp \
 ;; -L ":." -l ert -l "$test" --batch --eval \
 ;; '(ert-run-tests-batch-and-exit (quote (not (tag :unstable))))'; \
-;; done 2>&1 | egrep -v '^(Loading|Source file|Changed to so-long-mode)'
+;; done 2>&1 | grep -E -v '^(Loading|Source file|Changed to so-long-mode)'
 ;;
 ;; See also `ert-run-tests-batch-and-exit'.