libstdc++: use grep -E instead of egrep in scripts
egrep has been deprecated in favor of grep -E for a long time, and the next grep release (3.8 or 4.0) will print a warning of egrep is used. Stop using egrep so we won't see the warning. grep's from GNU, BSD (including Mac OS X), AIX, BusyBox all support -E and -F. Solaris grep doesn't support -E, but extract_symvers.in already contains a special case for Solaris and doxygen documentation generation is already broken on non-GNU. libstdc++-v3/ChangeLog: * scripts/extract_symvers.in: Use grep -E instead of egrep. * scripts/run_doxygen: Likewise.
This commit is contained in:
parent
7fd34782b9
commit
fa4e97907f
2 changed files with 4 additions and 4 deletions
|
@ -54,8 +54,8 @@ SunOS)
|
|||
${readelf} ${lib} |\
|
||||
sed -e 's/ \[<other>: [A-Fa-f0-9]*\] //' -e '/\.dynsym/,/^$/p;d' |\
|
||||
sed -e 's/ \[<localentry>: [0-9]*\] //' |\
|
||||
egrep -v ' (LOCAL|UND) ' |\
|
||||
egrep -v ' (_DYNAMIC|_GLOBAL_OFFSET_TABLE_|_PROCEDURE_LINKAGE_TABLE_|_edata|_end|_etext)$' |\
|
||||
grep -E -v ' (LOCAL|UND) ' |\
|
||||
grep -E -v ' (_DYNAMIC|_GLOBAL_OFFSET_TABLE_|_PROCEDURE_LINKAGE_TABLE_|_edata|_end|_etext)$' |\
|
||||
sed -e 's/ <processor specific>: / <processor_specific>:_/g' |\
|
||||
sed -e 's/ <OS specific>: / <OS_specific>:_/g' |\
|
||||
sed -e 's/ <unknown>: / <unknown>:_/g' |\
|
||||
|
|
|
@ -291,7 +291,7 @@ cxxflags="-Og -g -std=gnu++23"
|
|||
$gxx $cppflags $cxxflags ${srcdir}/doc/doxygen/stdheader.cc -o ./stdheader || exit 1
|
||||
# Doxygen outputs something like "\fC#include <unique_lock\&.h>\fP" and
|
||||
# we want that internal header to be replaced with something like <mutex>.
|
||||
problematic=`egrep -l '#include <.*h>' [a-z]*.3`
|
||||
problematic=`grep -E -l '#include <.*h>' [a-z]*.3`
|
||||
for f in $problematic; do
|
||||
# this is also slow, but safe and easy to debug
|
||||
oldh=`sed -n '/fC#include </s/.*<\(.*\)>.*/\1/p' $f`
|
||||
|
@ -303,7 +303,7 @@ rm stdheader
|
|||
# Some of the pages for generated modules have text that confuses certain
|
||||
# implementations of man(1), e.g. on GNU/Linux. We need to have another
|
||||
# top-level *roff tag to /stop/ the .SH NAME entry.
|
||||
problematic=`egrep --files-without-match '^\.SH SYNOPSIS' [A-Z]*.3`
|
||||
problematic=`grep -E --files-without-match '^\.SH SYNOPSIS' [A-Z]*.3`
|
||||
#problematic='Containers.3 Sequences.3 Assoc_containers.3 Iterator_types.3'
|
||||
|
||||
for f in $problematic; do
|
||||
|
|
Loading…
Add table
Reference in a new issue