From: Kirill Tkhai <tkhai@yandex.ru>
To: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Cc: Michal Marek <mmarek@suse.cz>
Subject: [PATCH] scripts/tags.sh: Ignore headers generated by build system
Date: Mon, 30 Dec 2013 21:03:07 +0400 [thread overview]
Message-ID: <58741388422987@web4j.yandex.ru> (raw)
Ignore "include/generated/*" and "arch/*/include/generated/*" files
while creating tags like it's done for "include/config/*".
Signed-off-by: Kirill Tkhai <tkhai@yandex.ru>
CC: Michal Marek <mmarek@suse.cz>
---
scripts/tags.sh | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/scripts/tags.sh b/scripts/tags.sh
index 58c4559..92ef5b7 100755
--- a/scripts/tags.sh
+++ b/scripts/tags.sh
@@ -48,7 +48,8 @@ find_arch_sources()
for i in $archincludedir; do
prune="$prune -wholename $i -prune -o"
done
- find ${tree}arch/$1 $ignore $subarchprune $prune -name "$2" -print;
+ find ${tree}arch/$1 $ignore -path arch/$1/include/generated -prune -o \
+ $subarchprune $prune -name "$2" -print;
}
# find sources in arch/$1/include
@@ -65,7 +66,9 @@ find_arch_include_sources()
# find sources in include/
find_include_sources()
{
- find ${tree}include $ignore -name config -prune -o -name "$1" -print;
+ find ${tree}include $ignore \
+ \( -path include/generated -o -path include/config \) -prune -o \
+ -name "$1" -print;
}
# find sources in rest of tree
reply other threads:[~2013-12-30 17:03 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=58741388422987@web4j.yandex.ru \
--to=tkhai@yandex.ru \
--cc=linux-kernel@vger.kernel.org \
--cc=mmarek@suse.cz \
/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
Powered by JetHome