ChainMake
view release on metacpan or search on metacpan
lib/ChainMake.pm view on Meta::CPAN
$age=$self->chainmake($dep);
unless ($age) {
$self->_diag(1,"Requirement '$dep' failed.\n");
$cannot_make=1;
$cannot_make_name=$dep;
last REQUIREMENTS unless ($insistent);
}
}
# oder der Name einer Datei?
elsif (-e $dep) {
$age=(stat($dep))[9];
}
# Requirement nicht auffindbar
else {
$self->_diag(1,"Missing requirement '$dep'.\n");
$cannot_make=1;
$cannot_make_name=$dep;
last REQUIREMENTS unless ($insistent);
}
# ist dieses Requirement jünger als das bisher Jüngste?
lib/ChainMake.pm view on Meta::CPAN
}
}
return undef;
}
sub _check_file_timestamps {
my ($self,$ver)=@_;
my ($oldest,$youngest,$missing);
for my $timestamps (@{$ver}) {
if (-e $timestamps) {
my $mtime = (stat($timestamps))[9];
$youngest=$mtime unless (($youngest) && ($youngest >= $mtime));
$oldest=$mtime unless (($oldest) && ($oldest <= $mtime));
}
else {
$missing=$timestamps;
}
}
return ($oldest,$youngest,$missing);
}
( run in 0.614 second using v1.01-cache-2.11-cpan-49f99fa48dc )