Catalog
view release on metacpan or search on metacpan
bin/sengacontrib.PL view on Meta::CPAN
run("make clean realclean") if(-f 'Makefile');
run("cvs update");
run("cvs commit");
run("cvs tag -F $info->{'next_change'}");
print "Now send a mail to $maintainer to ask for integration of $info->{'next_change'}\n";
} elsif($::opt_checkout) {
$cmd = ".." ; print "cd $cmd\n" ; chdir($cmd) || die "cannot chdir $cmd : $!";
if($info->{'newest_branch'} eq $info->{'current_branch'}) {
print "You have already checked out the newest branch\n";
} else {
my($backup) = "$product-$info->{'current_version'}";
die "$product directory does not exist" if(! -d $product);
die "$backup exists (regular file)" if(-f $backup);
die "$backup exists (directory)" if(-d $backup);
run("mv $product $backup");
run("cvs checkout -r $info->{'newest_branch'} $product");
}
} elsif($::opt_diff) {
run("cvs diff -c -r $info->{'current_change'} > ../$info->{'current_change'}.diff");
}
}
}
sub run {
my($cmd) = @_;
lib/Catalog.pm view on Meta::CPAN
my(%intervals) = $self->cdate_cgi2intervals($cgi);
my($day) = 24 * 60 * 60;
if((($catalog->{'updated'} || 0) < time() - $day) ||
($self->db()->exec_select_one("select count(*) as count from catalog_date_$name")->{'count'} <= 0)) {
$self->cdate_count_1_api($name);
}
#
# Try to load the most specific template first, then backup to
# cdate_default if none is found.
#
my($prefix) = $cgi->param('template') ? "cdate_" . $cgi->param('template') : "cdate_default";
my($template) = template_load("$prefix.html", $self->{'templates'}, $cgi->param('style'));
if(!defined($template)) {
$template = $self->template("cdate_default");
}
#
# Format the index
( run in 1.960 second using v1.01-cache-2.11-cpan-49f99fa48dc )