diff options
author | Sam James <sam@gentoo.org> | 2022-06-05 12:09:02 -0700 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2022-06-05 12:09:02 -0700 |
commit | 7df596a58cdfa763924487b8c275269de3497304 (patch) | |
tree | 7b2762ba7b12c0ed07d63cd14109305af04f4cf8 /scripts | |
parent | 3c23fa9f44fe88d0851e1344fc37ba60e74cb0fc (diff) | |
download | glibc-7df596a58cdfa763924487b8c275269de3497304.tar glibc-7df596a58cdfa763924487b8c275269de3497304.tar.gz glibc-7df596a58cdfa763924487b8c275269de3497304.tar.bz2 glibc-7df596a58cdfa763924487b8c275269de3497304.zip |
grep: egrep -> grep -E, fgrep -> grep -F
Newer versions of GNU grep (after grep 3.7, not inclusive) will warn on
'egrep' and 'fgrep' invocations.
Convert usages within the tree to their expanded non-aliased counterparts
to avoid irritating warnings during ./configure and the test suite.
Signed-off-by: Sam James <sam@gentoo.org>
Reviewed-by: Fangrui Song <maskray@google.com>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/check-c++-types.sh | 4 | ||||
-rw-r--r-- | scripts/documented.sh | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/scripts/check-c++-types.sh b/scripts/check-c++-types.sh index b80d141f1a..852973daca 100755 --- a/scripts/check-c++-types.sh +++ b/scripts/check-c++-types.sh @@ -32,9 +32,9 @@ # #include <sys/stat.h> # EOF # gcc -D_GNU_SOURCE -E - | -# egrep '^typedef.*;$' | +# grep -E '^typedef.*;$' | # sed 's/^typedef[[:space:]]*//;s/\([[:space:]]\{1,\}__attribute__.*\);/;/;s/.*[[:space:]]\([*]\|\)\(.*\);/\2/' | -# egrep -v '^_' | +# grep -E -v '^_' | # LC_ALL=C sort -u # data=$1 diff --git a/scripts/documented.sh b/scripts/documented.sh index 047a1d3493..7d1ffd4a92 100644 --- a/scripts/documented.sh +++ b/scripts/documented.sh @@ -3,7 +3,7 @@ bindir=$1 VERSION=1.0 -egrep -h @deftypefu?nx? *.texi ../linuxthreads/*.texi | +grep -E -h @deftypefu?nx? *.texi ../linuxthreads/*.texi | sed -e 's/@deftypefunx*[[:space:]]*\({[^{]*}\|[[:alnum:]_]*\)[[:space:]]*\([[:alnum:]_]*\).*/\2/' -e 's/@deftypefn {[^}]*function}*[[:space:]]*\({[^{]*}\|[[:alnum:]_]*\)[[:space:]]*\([[:alnum:]_]*\).*/\2/' -e '/^@/d' | sed -e '/^obstack_/d' -e '/^\([lf]\|\)stat\(\|64\)$/d' -e '/^mknod$/d' | sed -e '/^signbit$/d' -e '/^sigsetjmp$/d' | @@ -15,7 +15,7 @@ sed -e '/^alloca$/d' | sort -u > DOCUMENTED nm --extern --define $bindir/libc.so $bindir/math/libm.so $bindir/rt/librt.so $bindir/linuxthreads/libpthread.so $bindir/dlfcn/libdl.so $bindir/crypt/libcrypt.so $bindir/login/libutil.so | -egrep " [TW] ([[:alpha:]]|_[[:alpha:]])" | +grep -E " [TW] ([[:alpha:]]|_[[:alpha:]])" | sed 's/\(@.*\)//' | cut -b 12- | sed -e '/^_IO/d' -e '/^_dl/d' -e '/^_pthread/d' -e '/^_obstack/d' | |