mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/4] scripts/tags.sh: use more portable -path instead of -wholename
@ 2023-12-29  3:06 Wei Yang
  2023-12-29  3:06 ` [PATCH 2/4] scripts/tags.sh: add local annotation Wei Yang
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Wei Yang @ 2023-12-29  3:06 UTC (permalink / raw)
  To: gregkh, masahiroy, nicolas
  Cc: linux-kernel, Wei Yang, Guennadi Liakhovetski, WANG Cong, Michal Marek

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@gmail.com>
CC: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
CC: WANG Cong <xiyou.wangcong@gmail.com>
CC: Michal Marek <mmarek@suse.cz>

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-12-29  3:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-29  3:06 [PATCH 1/4] scripts/tags.sh: use more portable -path instead of -wholename Wei Yang
2023-12-29  3:06 ` [PATCH 2/4] scripts/tags.sh: add local annotation Wei Yang
2023-12-29  3:06 ` [PATCH 3/4] scripts/tags.sh: use -n to test archinclude Wei Yang
2023-12-29  3:06 ` [PATCH 4/4] scripts/tags.sh: remove find_sources Wei Yang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®