[Scons-users] ctag generation with scons

Schleimer, Ben bensch128 at yahoo.com
Tue Dec 22 23:50:37 EST 2015


Hi,

>> 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.
There was hopeful talk awhile back about using inotify or watchdog with scons to make it dynamically update it's dependency tree whenever a watched file is changed. Nothing has happen yet though...

CheersBen

 

    On Monday, December 21, 2015 3:00 PM, Michael Potter <michael at potter.name> wrote:
 
 

 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, and2) 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
_______________________________________________
Scons-users mailing list
Scons-users at scons.org
https://pairlist4.pair.net/mailman/listinfo/scons-users


 
  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20151223/78684e67/attachment.html>


More information about the Scons-users mailing list