[<prev] [next>] [day] [month] [year] [list]
Message-Id: <58741388422987@web4j.yandex.ru>
Date: Mon, 30 Dec 2013 21:03:07 +0400
From: Kirill Tkhai <tkhai@...dex.ru>
To: "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Cc: Michal Marek <mmarek@...e.cz>
Subject: [PATCH] scripts/tags.sh: Ignore headers generated by build system
Ignore "include/generated/*" and "arch/*/include/generated/*" files
while creating tags like it's done for "include/config/*".
Signed-off-by: Kirill Tkhai <tkhai@...dex.ru>
CC: Michal Marek <mmarek@...e.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists