From: Wei Yang <richard.weiyang@gmail.com>
To: gregkh@linuxfoundation.org, masahiroy@kernel.org, nicolas@fjasle.eu
Cc: linux-kernel@vger.kernel.org,
Wei Yang <richard.weiyang@gmail.com>,
Guennadi Liakhovetski <g.liakhovetski@gmx.de>,
WANG Cong <xiyou.wangcong@gmail.com>,
Michal Marek <mmarek@suse.cz>
Subject: [PATCH 1/4] scripts/tags.sh: use more portable -path instead of -wholename
Date: Fri, 29 Dec 2023 03:06:51 +0000 [thread overview]
Message-ID: <20231229030654.17474-1-richard.weiyang@gmail.com> (raw)
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
next reply other threads:[~2023-12-29 3:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-29 3:06 Wei Yang [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20231229030654.17474-1-richard.weiyang@gmail.com \
--to=richard.weiyang@gmail.com \
--cc=g.liakhovetski@gmx.de \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=masahiroy@kernel.org \
--cc=mmarek@suse.cz \
--cc=nicolas@fjasle.eu \
--cc=xiyou.wangcong@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®