[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20140106143200.207ab91c@gandalf.local.home>
Date: Mon, 6 Jan 2014 14:32:00 -0500
From: Steven Rostedt <rostedt@...dmis.org>
To: mmarek <mmarek@...e.cz>
Cc: Stephen Boyd <sboyd@...eaurora.org>,
Andrew Morton <akpm@...ux-foundation.org>,
Geert Uytterhoeven <geert@...ux-m68k.org>,
LKML <linux-kernel@...r.kernel.org>,
linux-kbuild <linux-kbuild@...r.kernel.org>,
Yang Bai <hamo.by@...il.com>
Subject: Re: [PATCH] scripts: Have make TAGS not include structure members
On Fri, 3 Jan 2014 14:24:32 +0100
mmarek <mmarek@...e.cz> wrote:
>
> The logic looks OK, but it is not completely obvious that $@ means
Hmm, it $@ is standard shell variable of "all commands". In fact, we
probably should change all the $1 to that instead. But I don't care how
we do it.
> 'etags --no-members, iff called as etags'. How about using a more
> descriptive variable like this?
>
> diff --git a/scripts/tags.sh b/scripts/tags.sh
> index 58c4559..3afc479 100755
> --- a/scripts/tags.sh
> +++ b/scripts/tags.sh
> @@ -219,7 +219,7 @@ exuberant()
>
> emacs()
> {
> - all_target_sources | xargs $1 -a \
> + all_target_sources | xargs $1 $no_members -a \
> --regex='/^\(ENTRY\|_GLOBAL\)(\([^)]*\)).*/\2/' \
> --regex='/^SYSCALL_DEFINE[0-9]?(\([^,)]*\).*/sys_\1/' \
> --regex='/^TRACE_EVENT(\([^,)]*\).*/trace_\1/' \
> @@ -308,12 +308,15 @@ case "$1" in
>
> "tags")
> rm -f tags
> + no_members=
> xtags ctags
> remove_structs=y
> ;;
>
> "TAGS")
> rm -f TAGS
> + # Do not index struct members when generating Emacs TAGS
> + no_members=--no-members
> xtags etags
Sure, I'll update this and send another patch.
Thanks,
-- Steve
--
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