Re: how to make which recipie to run dependant on if the intermediate was cooked or not
Jerry Pendergraft <[email protected]>
| Newsgroups | gmane.comp.version-control.aegis.user |
|---|---|
| Message-ID | <[email protected]> |
That would be a place to use a "gate" in the recipe ala:
%0%.svg: %0%.java
if [count [match_mask %0%.java [project_files]]]
{
echo It is a UMLGraph file;
}
%0%.svg: %0%.dot
if [count [match_mask %0%.dot [project_files]]]
{
echo It is a raw dot file;
}
Essentially the "gate" enables only the appropriate recipe.
It is even possible you could use the simpler "in" operator such as
for the java one:
if [in %0%.java [project_files]]
On 5 Apr, 2011, at 22:42 , Aryeh Friedman wrote:
> We use a program called UMLGraph to generate UML diagrams from
> pseudo-code (actually pseudo-Java) this program as a intermediate
> product (it leaves the temp file though) produces a .dot file for
> input into graphviz (a graph visualization tool) and then graphviz
> does the final rendering of the textual description of the UML graph
> (it's own little lang) in a number of formats including jpg, gif, svg,
> tiff, etc. Obviously raw graphiv files should also be processable
> (namely I am translating a EBNF definition into the DFA that
> implements it use a state machine diagram). Graphiz *requires* that
> all input files be called "*.dot" and since we always want SVG output
> so that each aeb updates the pseudo-wiki we use for communicating with
> client(s) during the design phase of a project (namely every time we
> alter the design [and run aeb] the site is fully up to date).
>
> Enough background I need to write two recipes that have the same
> target pattern but have different source patterns for example:
> %0%.svg: %0%.java
> {
> echo It is a UMLGraph file;
> }
>
> %0%.svg: %0%.dot
> {
> echo It is a raw dot file;
> }
>
>
> How can I write a set of recipes with out cook barfing on it?
> _______________________________________________
> Aegis-users mailing list
> [email protected]
> http://lists.auug.org.au/listinfo/aegis-users
Jerry Pendergraft
[email protected]
This communication, including any attachments, may contain information that is proprietary, privileged, confidential or legally exempt from disclosure. If you are not a named addressee, you are hereby notified that you are not authorized to read, print, retain a copy of or disseminate any portion of this communication without the consent of the sender and that doing so may be unlawful. If you have received this communication in error, please immediately notify the sender via return e-mail and delete it from your system.
_______________________________________________
Aegis-users mailing list
[email protected]
http://lists.auug.org.au/listinfo/aegis-users