How to use Command

"BUFFERNE,VINCENT (HP-France,ex1)" <[email protected]> Thu, 23 Jan 2003 08:50:04 +0100
Newsgroups gmane.comp.gnu.cons.general
Message-ID <[email protected]>
Hi All,

I am using cons to build my software. During my build I produce a shar file
with:

$local_env->Command("foo", qq (
     shar $script_dir > %>
)
);

This shar hundreds of files. I do not want to maintain such a huge list of
dependencies; it is why I have removed dependencies in "Command".
But if I modify one of the file that I want to shar, Cons will not detect
the change (as their is no dependencies) and will retrieve the shar file
from its cache.

I have found a workaround using a dummy file that I "touch" when I want to
force the production of a new shar file:

$local_env->Command("foo", "dummy_file" ,qq (
     shar $script_dir > %>
)
);

But I not really happy with it. Do you have any suggestions ???

Vincent


_______________________________________________
[email protected]
http://mail.gnu.org/mailman/listinfo/cons-discuss
Cons URL: http://www.dsmit.com/cons/