Use grep instead of fgrep and egrep
The latter are deprecated and shouldn't be used any longer. No real changes. Closes #23537.
This commit is contained in:
parent
54a8a6ac16
commit
a0e3f1e1ab
7 changed files with 8 additions and 11 deletions
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
|
|
@ -326,7 +326,7 @@ jobs:
|
||||||
if [ ${{ matrix.use_asan }} ]; then
|
if [ ${{ matrix.use_asan }} ]; then
|
||||||
# Work around spurious crashes by running the test again.
|
# Work around spurious crashes by running the test again.
|
||||||
# See https://github.com/google/sanitizers/issues/1353
|
# See https://github.com/google/sanitizers/issues/1353
|
||||||
if fgrep -q 'LeakSanitizer has encountered a fatal error' test.out; then
|
if grep -qF 'LeakSanitizer has encountered a fatal error' test.out; then
|
||||||
echo '+++ Rerunning the tests once again after LeakSanitizer crash +++'
|
echo '+++ Rerunning the tests once again after LeakSanitizer crash +++'
|
||||||
unset rc
|
unset rc
|
||||||
./test || rc=$?
|
./test || rc=$?
|
||||||
|
|
@ -376,7 +376,7 @@ jobs:
|
||||||
|
|
||||||
/bin/bash -o pipefail -c "xvfb-run -a -s '-screen 0 1600x1200x24' ./test_gui -d 1 $wx_tests_selection 2>&1 | tee -a test_gui.out" || rc=$?
|
/bin/bash -o pipefail -c "xvfb-run -a -s '-screen 0 1600x1200x24' ./test_gui -d 1 $wx_tests_selection 2>&1 | tee -a test_gui.out" || rc=$?
|
||||||
if [ -n "$rc" ]; then
|
if [ -n "$rc" ]; then
|
||||||
if fgrep -q '(core dumped)' test_gui.out; then
|
if grep -qF '(core dumped)' test_gui.out; then
|
||||||
echo '*** Test crashed, trying to get more information ***'
|
echo '*** Test crashed, trying to get more information ***'
|
||||||
gdb --quiet --core=core -ex 'where' -ex 'thread apply all bt' -ex 'q' ./test_gui
|
gdb --quiet --core=core -ex 'where' -ex 'thread apply all bt' -ex 'q' ./test_gui
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
|
|
@ -34645,7 +34645,7 @@ distdir: @GUIDIST@
|
||||||
@# in other dist targets.
|
@# in other dist targets.
|
||||||
find $(DISTDIR) \( -name "CVS" -o -name ".cvsignore" -o -name "*.dsp" -o -name "*.dsw" -o -name "*.hh*" -o \
|
find $(DISTDIR) \( -name "CVS" -o -name ".cvsignore" -o -name "*.dsp" -o -name "*.dsw" -o -name "*.hh*" -o \
|
||||||
\( -name "makefile.*" -a ! -name "makefile.gcc" -a ! -name "makefile.unx" \) \) \
|
\( -name "makefile.*" -a ! -name "makefile.gcc" -a ! -name "makefile.unx" \) \) \
|
||||||
-print | egrep -v '/samples/.*\.hh.$$' | xargs rm -rf
|
-print | grep -vE '/samples/.*\.hh.$$' | xargs rm -rf
|
||||||
|
|
||||||
dist: distdir
|
dist: distdir
|
||||||
@cd _dist_dir && tar ch $(DISTDIRNAME) | gzip -f9 > ../$(WXARCHIVE);
|
@cd _dist_dir && tar ch $(DISTDIRNAME) | gzip -f9 > ../$(WXARCHIVE);
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,7 @@ AC_DEFUN([AC_BAKEFILE_GNUMAKE],
|
||||||
AC_CACHE_CHECK([if make is GNU make], bakefile_cv_prog_makeisgnu,
|
AC_CACHE_CHECK([if make is GNU make], bakefile_cv_prog_makeisgnu,
|
||||||
[
|
[
|
||||||
if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
|
if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
|
||||||
egrep -s GNU > /dev/null); then
|
grep -sE GNU > /dev/null); then
|
||||||
bakefile_cv_prog_makeisgnu="yes"
|
bakefile_cv_prog_makeisgnu="yes"
|
||||||
else
|
else
|
||||||
bakefile_cv_prog_makeisgnu="no"
|
bakefile_cv_prog_makeisgnu="no"
|
||||||
|
|
|
||||||
|
|
@ -748,7 +748,7 @@ distdir: @GUIDIST@
|
||||||
@# in other dist targets.
|
@# in other dist targets.
|
||||||
find $(DISTDIR) \( -name "CVS" -o -name ".cvsignore" -o -name "*.dsp" -o -name "*.dsw" -o -name "*.hh*" -o \
|
find $(DISTDIR) \( -name "CVS" -o -name ".cvsignore" -o -name "*.dsp" -o -name "*.dsw" -o -name "*.hh*" -o \
|
||||||
\( -name "makefile.*" -a ! -name "makefile.gcc" -a ! -name "makefile.unx" \) \) \
|
\( -name "makefile.*" -a ! -name "makefile.gcc" -a ! -name "makefile.unx" \) \) \
|
||||||
-print | egrep -v '/samples/.*\.hh.$$' | xargs rm -rf
|
-print | grep -vE '/samples/.*\.hh.$$' | xargs rm -rf
|
||||||
|
|
||||||
dist: distdir
|
dist: distdir
|
||||||
@cd _dist_dir && tar ch $(DISTDIRNAME) | gzip -f9 > ../$(WXARCHIVE);
|
@cd _dist_dir && tar ch $(DISTDIRNAME) | gzip -f9 > ../$(WXARCHIVE);
|
||||||
|
|
|
||||||
|
|
@ -102,9 +102,6 @@ function(wx_write_config)
|
||||||
set(libdir "\${exec_prefix}/lib")
|
set(libdir "\${exec_prefix}/lib")
|
||||||
set(bindir "\${exec_prefix}/bin")
|
set(bindir "\${exec_prefix}/bin")
|
||||||
|
|
||||||
find_program(EGREP egrep)
|
|
||||||
mark_as_advanced(EGREP)
|
|
||||||
|
|
||||||
if(wxBUILD_MONOLITHIC)
|
if(wxBUILD_MONOLITHIC)
|
||||||
set(MONOLITHIC 1)
|
set(MONOLITHIC 1)
|
||||||
else()
|
else()
|
||||||
|
|
|
||||||
2
configure
vendored
2
configure
vendored
|
|
@ -41612,7 +41612,7 @@ if ${bakefile_cv_prog_makeisgnu+:} false; then :
|
||||||
else
|
else
|
||||||
|
|
||||||
if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
|
if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
|
||||||
egrep -s GNU > /dev/null); then
|
grep -sE GNU > /dev/null); then
|
||||||
bakefile_cv_prog_makeisgnu="yes"
|
bakefile_cv_prog_makeisgnu="yes"
|
||||||
else
|
else
|
||||||
bakefile_cv_prog_makeisgnu="no"
|
bakefile_cv_prog_makeisgnu="no"
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@ cat _tmp6 | sort +2 > _tmp4
|
||||||
cat _tmp4 | while read i ; do
|
cat _tmp4 | while read i ; do
|
||||||
code=`echo $i | cut -c1-6`
|
code=`echo $i | cut -c1-6`
|
||||||
fallb=`echo $i | cut -c8-29`
|
fallb=`echo $i | cut -c8-29`
|
||||||
cat _tmp4 | fgrep "$fallb" | cut -c1-6 | (read i ;
|
cat _tmp4 | grep -F "$fallb" | cut -c1-6 | (read i ;
|
||||||
echo "$code $i" >> _tmp5)
|
echo "$code $i" >> _tmp5)
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
@ -54,7 +54,7 @@ cat _tmp6 | sort +2 > _tmp4
|
||||||
cat _tmp4 | while read i ; do
|
cat _tmp4 | while read i ; do
|
||||||
code=`echo $i | cut -c1-6`
|
code=`echo $i | cut -c1-6`
|
||||||
fallb=`echo $i | cut -c8-27`
|
fallb=`echo $i | cut -c8-27`
|
||||||
cat _tmp4 | fgrep "$fallb" | cut -c1-6 | (read i ;
|
cat _tmp4 | grep -F "$fallb" | cut -c1-6 | (read i ;
|
||||||
echo "$code $i" >> _tmp5)
|
echo "$code $i" >> _tmp5)
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue