[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 3aad703: Use "grep -E" instead of deprecated "egrep"
From: |
Stefan Kangas |
Subject: |
master 3aad703: Use "grep -E" instead of deprecated "egrep" |
Date: |
Wed, 10 Nov 2021 10:31:40 -0500 (EST) |
branch: master
commit 3aad70326db4b654c836be97f7b96bb71e10202a
Author: Stefan Kangas <stefan@marxist.se>
Commit: Stefan Kangas <stefan@marxist.se>
Use "grep -E" instead of deprecated "egrep"
* admin/emake:
* test/lisp/so-long-tests/so-long-tests.el: Use "grep -E" instead of
deprecated "egrep".
---
admin/emake | 6 +++---
test/lisp/so-long-tests/so-long-tests.el | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/admin/emake b/admin/emake
index 8c37c16..2ff5532 100755
--- a/admin/emake
+++ b/admin/emake
@@ -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"
diff --git a/test/lisp/so-long-tests/so-long-tests.el
b/test/lisp/so-long-tests/so-long-tests.el
index 7eee345..cda5ae4 100644
--- a/test/lisp/so-long-tests/so-long-tests.el
+++ b/test/lisp/so-long-tests/so-long-tests.el
@@ -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'.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 3aad703: Use "grep -E" instead of deprecated "egrep",
Stefan Kangas <=