in reply to make-like dependency tools in perl

I've used Algorithm::Dependency::Ordered for this sort of thing. If you can show a specific example of what it doesn't do, perhaps someone will suggest a solution.

Rebuild the dependency graph when something changes instead of using rules for updating the graph. Incremental graph-update functions are certainly possible to write, but many graph modules don't support it.

"Age/change state" can be checked with ordinary date modules or functions. Do you need something else?

How many dependencies do you have? If you have more than about 50,000 you may have a difficult job. If you have more than about 3,000,000 it can be very tough.

It should work perfectly the first time! - toma

Replies are listed 'Best First'.
Re^2: make-like dependency tools in perl
by bsb (Priest) on Jun 25, 2005 at 05:52 UTC
    From my cursory inspection, Algorithm::Dependency didn't seem to buy me much over Graph. I'd still be handling the execution and the graph building (or using the format of A::D::Source::File). Maybe I should have a second look, since you think it may be useful.

    "Age/change state" can be checked with ordinary date modules or functions. Do you need something else?

    The only unusual requirement here is that I should be able to source the date from a database instead of simply from a file's age. Another option in build systems is comparing md5 hashes for changes, but I haven't needed that myself.

    My dependency graphs have all been quite small an simple. Fewer than 20 nodes, just managing task order and execution.