From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756167Ab3L3RDM (ORCPT ); Mon, 30 Dec 2013 12:03:12 -0500 Received: from forward12.mail.yandex.net ([95.108.130.94]:35443 "EHLO forward12.mail.yandex.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756051Ab3L3RDL (ORCPT ); Mon, 30 Dec 2013 12:03:11 -0500 From: Kirill Tkhai To: "linux-kernel@vger.kernel.org" Cc: Michal Marek Subject: [PATCH] scripts/tags.sh: Ignore headers generated by build system MIME-Version: 1.0 Message-Id: <58741388422987@web4j.yandex.ru> X-Mailer: Yamail [ http://yandex.ru ] 5.0 Date: Mon, 30 Dec 2013 21:03:07 +0400 Content-Transfer-Encoding: 7bit Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Ignore "include/generated/*" and "arch/*/include/generated/*" files while creating tags like it's done for "include/config/*". Signed-off-by: Kirill Tkhai CC: Michal Marek --- 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