cons-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to use Command


From: BUFFERNE,VINCENT (HP-France,ex1)
Subject: How to use Command
Date: Thu, 23 Jan 2003 08:50:04 +0100

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]