[Scons-users] ctag generation with scons

Michael Potter michael at potter.name
Mon Dec 21 17:59:13 EST 2015


I read over the URL.

Maybe I missed it, but it seems that it is describing how to make a new
builder.

That really does not fit how ctags works.

The ctag file contains all the tags from many .c files.  If a subset of
those .c file changes, then I want the ctag file updated for only the
subset.

Unless I am missing something, this is different than the builders.

I would need something like this

env.RunOnChanged('ctags -someoptions')

That is, after scons is done with its normal processing, a final command
runs that gets the list of what changed:
1) Both since last scons, and
2) changed during scons.

This would be somewhat fragile, but that is okay, I would build ctags by
hand periodically.  I am also looking at using inotify, which might be a
better way to go anyway.  Then the file is update on change and I don't
have to wait for an scons.


On Mon, Dec 21, 2015 at 4:51 PM, William Blevins <wblevins001 at gmail.com>
wrote:

> Michael,
>
> This should be what you are looking for:
> https://bitbucket.org/scons/scons/wiki/ToolsForFools
>
> Give this a read first and let us know if you need more information.
>
> V/R,
> William
>
> On Mon, Dec 21, 2015 at 9:19 PM, Michael Potter <pottmi at gmail.com> wrote:
>
>> What is the best way to generate ctags with scons?
>>
>> I am thinking that there should be a way for scons to know what files
>> changed and only run ctags on the changed files.
>>
>> By changed files I mean a) any file that was changed by hand before scons
>> ran and b) any file that was generated while scons ran.
>>
>> b is important to me because I have .c code that is generated.
>>
>> It would be nice if it took into account deleted files too; even if it
>> just warned me about deleted files.
>>
>>
>> _______________________________________________
>> Scons-users mailing list
>> Scons-users at scons.org
>> https://pairlist4.pair.net/mailman/listinfo/scons-users
>>
>>
>
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> https://pairlist4.pair.net/mailman/listinfo/scons-users
>
>


-- 
Michael Potter
  Tapp Solutions, LLC
   www.tappsolutions.com
+1 770 815 6142  ** Atlanta ** michael at potter.name  **
www.linkedin.com/in/michaelpotter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20151221/c01b3cb2/attachment.html>


More information about the Scons-users mailing list