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


Make-Cache documentation  | view source Contained in the Make-Cache distribution.

Index


NAME

Top

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

SYNOPSIS

Top

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

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

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

DESCRIPTION

Top

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

FUNCTIONS

Top

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

Top

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

Copyright 2000-2010 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 Version 3 or the Perl Artistic License Version 2.0.

AUTHORS

Top

Wilson Snyder <wsnyder@wsnyder.org>

SEE ALSO

Top

objcache, Make::Cache


Make-Cache documentation  | view source Contained in the Make-Cache distribution.