[PATCH 1/4] scripts/tags.sh: use more portable -path instead of -wholename

From: Wei Yang
Date: Thu Dec 28 2023 - 22:07:10 EST


According to the manual, -path is more portable than -wholename. Also
for consistency, let's use -path here.

Signed-off-by: Wei Yang <richard.weiyang@xxxxxxxxx>
CC: Guennadi Liakhovetski <g.liakhovetski@xxxxxx>
CC: WANG Cong <xiyou.wangcong@xxxxxxxxx>
CC: Michal Marek <mmarek@xxxxxxx>

merg
---
scripts/tags.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/tags.sh b/scripts/tags.sh
index a70d43723146..fbae1a087ee1 100755
--- a/scripts/tags.sh
+++ b/scripts/tags.sh
@@ -50,7 +50,7 @@ fi
find_arch_sources()
{
for i in $archincludedir; do
- prune="$prune -wholename $i -prune -o"
+ prune="$prune ( -path $i ) -prune -o"
done
find ${tree}arch/$1 $ignore $prune -name "$2" -not -type l -print;
}
--
2.34.1