[Scons-users] time profile
Jay Damask
jaydamask at gmail.com
Sat Jun 8 15:04:39 EDT 2013
Philipp Kraus <philipp.kraus <at> flashpixx.de> writes:
>
> Hi Jay,
>
> Am 08.06.2013 um 20:29 schrieb Jay Damask:
> > Define a trivial builder, perhaps called TimeStamp, and set the $COM
string
> > to something like date +%c (linux).
>
> Yes, you're right, but this a OS based solution, it is not very flexible.
I think a more
> general solution should be better.
> IMHO a more Python based solution is more general
>
> Phil
> _______________________________________________
> Scons-users mailing list
> Scons-users <at> scons.org
> http://four.pairlist.net/mailman/listinfo/scons-users
>
>
Phil,
Rather than $COM, use python's time class and call .gmtime() or
.localtime(). That's sys agnostic.
I read your question as less about how to obtain a timestamp and more about
setting up the dependencies in SCons to generate accurate ts records.
Anyway, my Alias / Depend approach is just one idea. I'm sure there are
better ones.
Cheers -Jay
More information about the Scons-users
mailing list