CPAN::Checksums(3pm) | User Contributed Perl Documentation | CPAN::Checksums(3pm) |
CPAN::Checksums - Write a "CHECKSUMS" file for a directory as on CPAN
use CPAN::Checksums qw(updatedir); my $success = updatedir($directory, $root);
Since version 1.0 the generation of the attribute "shortname" is turned off by default. It was too slow and was not used as far as I know, and above all, it could fail on large directories. The shortname feature can still be turned on by setting the global variable $TRY_SHORTNAME to a true value.
If $root is given, the hash entry with the key "cpan_path" is relative to this root directory.
Note: since version 2.0 updatedir on empty directories behaves just the same. In older versions it silently did nothing.
qr{(?i-xsm:readme$)}
0&&<<''; # this PGP-signed message is also valid perl -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 # CHECKSUMS file written on ... by CPAN::Checksums (v...) $cksum = { ... }; __END__ -----BEGIN PGP SIGNATURE----- ... -----END PGP SIGNATURE-----
note that the actual data remains intact, but two extra lines are added to make it legal for both OpenPGP and perl syntax.
DirHandle, IO::File, Digest::MD5, Digest::SHA, Compress::Bzip2, Compress::Zlib, File::Spec, Data::Dumper, Data::Compare, File::Temp
If updatedir is interrupted, it may leave a temporary file lying around. These files have the File::Temp template "CHECKSUMS.XXXX" and should be harvested by a cronjob.
Andreas Koenig, andreas.koenig@anima.de; GnuPG support by Autrijus Tang
Copyright (c) 2002-2008 Andreas Koenig, Audrey Tang, Steve Peters.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
2021-12-05 | perl v5.32.1 |