* [PATCH] scripts/tags.sh: Ignore headers generated by build system
@ 2013-12-30 17:03 Kirill Tkhai
0 siblings, 0 replies; only message in thread
From: Kirill Tkhai @ 2013-12-30 17:03 UTC (permalink / raw)
To: linux-kernel; +Cc: Michal Marek
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-12-30 17:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-30 17:03 [PATCH] scripts/tags.sh: Ignore headers generated by build system Kirill Tkhai
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