NAME

Make::Cache::Hash - Dependency file functions and hashing

SYNOPSIS

Make::Cache::Hash::clear_cache();

hash{tgt}{dep} = Make::Cache::Hash::dfile_read(filename=>fn);

my $digest = Make::Cache::Hash::hash(filenames=>[], text=>[]);

DESCRIPTION

Make::Cache::Hash contains functions for reading and writing make.d files, and for doing MD5 hashes on files.

FUNCTIONS

dfile_read (filename=>in)

Read the specified filename. Return a hash reference, where the keys of the hash are the target (generated output) files, and the values are a hash of the dependent (required input) files. The filename itself is considered a output dependency.

hash

Return a MD5 hash on the specified list of filenames, and specified list of text. With the ignore_rcs parameter, which defaults as on, ignore any RCS/CVS/Perforce meta tags in the source.

clear_hash

Clear the internal cache used to accelerate the hash() function. Must be called anytime a file that has been hashed has changed.

newest

Return the mod time of the newest filename in the list of filenames passed. If any does not exist, return undef.

DISTRIBUTION

The latest version is available from CPAN and from http://www.veripool.com/.

Copyright 2000-2006 by Wilson Snyder. This package is free software; you can redistribute it and/or modify it under the terms of either the GNU Lesser General Public License or the Perl Artistic License.

AUTHORS

Wilson Snyder <wsnyder@wsnyder.org>

SEE ALSO

objcache, Make::Cache