Message ID | 8532a93336a900754cc78c4c0834bf1cc3b7173a.camel@xry111.site |
---|---|
State | New |
Headers | show |
Series | Stop using obsoleted egrep/fgrep | expand |
On Fri, 24 Jun 2022, Xi Ruoyao via Gcc-patches wrote: > fgrep has been deprecated in favor of grep -F for a long time, and the > next grep release (3.8 or 4.0) will print a warning of fgrep is used. > And, the fgrep command in exgettext is no longer useful after we > migrated from SVN to Git. Remove the fgrep command so we won't see the > warning. > > gcc/ChangeLog: > > * po/exgettext: Remove unneeded fgrep command. OK.
On Fri, 2022-06-24 at 16:06 +0000, Joseph Myers wrote: > On Fri, 24 Jun 2022, Xi Ruoyao via Gcc-patches wrote: > > > fgrep has been deprecated in favor of grep -F for a long time, and > > the > > next grep release (3.8 or 4.0) will print a warning of fgrep is > > used. > > And, the fgrep command in exgettext is no longer useful after we > > migrated from SVN to Git. Remove the fgrep command so we won't see > > the > > warning. > > > > gcc/ChangeLog: > > > > * po/exgettext: Remove unneeded fgrep command. > > OK. Pushed as r13-1264 with ChangeLog fix (gcc/po/ChangeLog should be used), as it does not depend on other parts in the series.
diff --git a/gcc/po/exgettext b/gcc/po/exgettext index 95cb0e75554..43b2e81bd24 100644 --- a/gcc/po/exgettext +++ b/gcc/po/exgettext @@ -99,7 +99,7 @@ echo "scanning for keywords, %e and %n strings..." >&2 lang_subdirs=`echo */config-lang.in */*/config-lang.in | sed -e 's|/config-lang\.in||g'` { for dir in "" c-family/ common/ common/config/ common/config/*/ \ config/ config/*/ \ - `find $lang_subdirs -type d -print | fgrep -v .svn | sort | sed -e 's|$|/|'` + `find $lang_subdirs -type d -print | sort | sed -e 's|$|/|'` do for glob in '*.c' '*.cc' '*.h' '*.def' do eval echo $dir$glob done