Make::Cache::Hash package contains 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=>[]);
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.
Product's homepage
Requirements:
· Perl