File: update-checksums.pl

package info (click to toggle)
libcpan-reporter-smoker-perl 0.30-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 380 kB
  • sloc: perl: 701; makefile: 2
file content (15 lines) | stat: -rwxr-xr-x 345 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env perl
use strict;
use warnings;
use CPAN::Checksums qw/updatedir/;
use File::Find;

sub wanted { 
    return unless 
        -d $File::Find::name &&
        $File::Find::name =~ m{authors/id/./../.+$};
    print "$File::Find::name\n";    
    updatedir( $File::Find::name );
}

find( { wanted => \&wanted, no_chdir => 1 }, q{.} );