diff options
author | Wei Yang <richard.weiyang@gmail.com> | 2023-12-29 04:06:51 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-01-04 17:01:15 +0100 |
commit | f9fefa985d2e96db81954ae3b1feb09d69357f28 (patch) | |
tree | 721fd04da2cf12a59231e655c5f60fc16abe428e | |
parent | scripts/tags.sh: Update comment (addition of gtags) (diff) | |
download | linux-f9fefa985d2e96db81954ae3b1feb09d69357f28.tar.xz linux-f9fefa985d2e96db81954ae3b1feb09d69357f28.zip |
scripts/tags.sh: use more portable -path instead of -wholename
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>
Link: https://lore.kernel.org/r/20231229030654.17474-1-richard.weiyang@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rwxr-xr-x | scripts/tags.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/tags.sh b/scripts/tags.sh index cb96961349aa..be7970b8b88a 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; } |