[Scons-users] How to _decide_ the target change by a given MD5SUM.
xfguo at xfguo.org
Sun Jan 18 01:00:24 EST 2015
I am writing a builder that can download the file from internet by a
given URL. I think  is a very good reference for me, but my
requirement is a little bit different, that is, the _URLDownload_
builder showed in  is
env.URLDownload( "<filename>", "<download url>" )
each time we run `scons`, it will get the "<download url>" HTTP header
then check it's Length & Last-Modified.
but I want to give a MD5SUM value to the builder that if the _target_
file is exist and its MD5SUM is equal to the given one, then *do
env.URLDownload( "<filename>", "<download url>", MD5SUM =
So, I want to get some help that how to let the builder check whether
the _target_ is changed by a given function/method.
Thanks & BR.
More information about the Scons-users