[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [RFC] build: use xargs in conjunction with etags

On Fri, Jun 23, 2006 at 04:56:41PM +0200, Markus Armbruster wrote:
> Horms <horms@xxxxxxxxxxxx> writes:
> > The existing etags invocation does not seem to work for me,
> > but using xargs in the same way that it is used for crats does.
> > I'm pretty sure that is because on Debian etags == ctags,
> > does anyone have etags lying around to test if this works?
> >
> > Also, I'm pretty sure this xargs approach will break for both ctags
> > and etags if there are too many files to for one command line,
> > as ctags/etags will be invoked multiple times, and the resulting
> > tags file will only contain the tags for the last invocation.
> >
> > Signed-Off-By: Horms <horms@xxxxxxxxxxxx>
> > --- x/xen/Makefile
> > +++ x/xen/Makefile
> > @@ -132,7 +136,7 @@ endef
> >  
> >  .PHONY: _TAGS
> >  _TAGS: 
> > -   $(all_sources) | etags -
> > +   $(all_sources) | xargs etags
> When xargs invokes etags more than once (i.e. it's actually needed),
> each invocation will clobber the output of the previous one.

Indeed, I was concerned about that.

> To run
> etags on an arbitrarily long file list, try something like
>     rm -f TAGS && $(all_sources) | xargs etags -a

Is the rm -f TAGS neccessary?

I believe that for ctags the following will work. At least it seems
to work just fine here with exuberant-ctags 5.5.4

        $(all_sources) | xargs ctags -L -

Can you (or anyone who has etags) see if this approach works for etags
as well.  The reason that I ask is that it would be nice to have a
command line that works for etags and ctags, as on Debian at least etags
is ctags (though I am not sure how wise that is).

H: http://www.vergenet.net/~horms/          W: http://www.valinux.co.jp/en/

Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.