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".
This commit is contained in:
parent
810fa21d26
commit
3aad70326d
2 changed files with 5 additions and 5 deletions
|
@ -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"
|
||||
|
|
|
@ -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'.
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue