[Scons-users] Does SCons has an automatic rebuild option ?
Managan, Rob
managan1 at llnl.gov
Wed Oct 31 10:49:10 EDT 2012
You could consider looking at the -interactive mode and seeing if you
could add something that periodically calls "build"
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
Rob Managan email managan at llnl.gov
LLNL phone: 925-423-0903
P.O. Box 808, L-095 FAX: 925-422-3389
Livermore, CA 94551-0808
On 10/31/12 5:44 AM, "Julien Kauffmann" <julien.kauffmann at freelan.org>
wrote:
>On Wed, 31 Oct 2012 12:06:48 +0100, Jean-Baptiste Lab
><jeanbaptiste.lab at gmail.com> wrote:
>> Hi Julien
>>
>> On 31 October 2012 11:48, Bruce Adams <tortoise_74 at yahoo.co.uk> wrote:
>>> It sounds like what you want is a continous integration system.
>>> This is a slightly different job from a build tool and it usually
>>>makes more
>>> sense have the continousl integration system use
>>> the build tool rather than to combine the two into.
>>> I would recommend looking at Jenkins for a good open source continuous
>>> integration server though it might be overkill for your needs.
>>> I don't know how well it plays with scons as it comes from java land
>>>but I
>>> have used it with some success on plain old makefile projects.
>>
>> I agree with Bruce's comments, it may not make sense to build this
>> functionality into SCons. There are ways for you to achieve what you
>> want relatively easily using a "file watching utility". I quickly
>> found this link which you may find useful:
>>
>>
>>http://superuser.com/questions/181517/how-to-execute-a-command-whenever-a
>>-file-changes
>>
>> Regards,
>>
>> JB
>> _______________________________________________
>> Scons-users mailing list
>> Scons-users at scons.org
>> http://four.pairlist.net/mailman/listinfo/scons-users
>
>Hi,
>
>That sure looks like a continuous integration system to some extent.
>
>I knew Jenkins but that is indeed too heavy for the task: the goal was
>mainly to provide an easy and integrated way to easy the work for a
>developer that spends a lot of time typing "scons" in his terminal.
>
>Actually, before asking this question, I was already able to get a
>satisfying and quick result with "watchmedo", the script that comes with
>the [watchdog](http://pypi.python.org/pypi/watchdog) Python module.
>
>The final command looked like:
>
>> watchmedo shell-command --patterns="*.scss" --command="scons"
>
>I was mainly thinking about having an option for that in SCons because
>SCons has all the necessary information to do that more efficiently
>(from a list of targets, it knows exactly what to watch and what to
>rebuild).
>
>That said, I can understand the rationale that SCons should just handle
>"regular" one-time builds and not become an over-featured tool.
>
>So anyway, thanks for your answers and feedback.
>
>Regards,
>
>Julien Kauffmann.
>_______________________________________________
>Scons-users mailing list
>Scons-users at scons.org
>http://four.pairlist.net/mailman/listinfo/scons-users
More information about the Scons-users
mailing list