depend-cleanup.sh: Simplify handling for stale syscall.S

Remove the outer grep and depend on the greps in clean_dep instead.

Reviewed by:	brooks, imp
Obtained from:	CheriBSD
Sponsored by:	AFRL, DARPA
Differential Revision:	https://reviews.freebsd.org/D46103
This commit is contained in:
John Baldwin 2024-08-05 15:49:06 -04:00
parent 9bc300465e
commit 3a4b04e82d

View file

@ -171,9 +171,7 @@ clean_dep lib/libc statfs c
# 20240308 e6ffc7669a56 Remove pointless MD syscall(2)
# 20240308 0ee0ae237324 Remove pointless MD syscall(2)
# 20240308 7b3836c28188 Remove pointless MD syscall(2)
if [ ${MACHINE} != i386 -a -f "$OBJTOP"/lib/libsys/.depend.syscall.o ] && \
grep -q -e 'libsys/[^ /]*/syscall.S' "$OBJTOP"/lib/libsys/.depend.syscall.*; then
echo "Removing stale <arch>/syscall.S depends"
if [ ${MACHINE} != i386 ]; then
clean_dep lib/libsys syscall S
clean_dep lib/libc syscall S
fi