#!/usr/bin/perl use strict; $|++; my $VERSION = '0.04'; #---------------------------------------------------------------------------- =head1 NAME cpanreps-writepages - script to create the CPAN Testers Reports website. =head1 SYNOPSIS perl cpanreps-writepages -c= [-d=] =head1 DESCRIPTION Using the cpanstats database, extracts all the data into the components of each page. Then creates each HTML page for the site. =cut # ------------------------------------- # Library Modules use FindBin; use lib ("$FindBin::Bin/../lib", "../lib"); use CPAN::WWW::Testers; use Getopt::ArgvFile default=>1; use Getopt::Long; use File::Path; # ------------------------------------- # Variables my (%options); # ------------------------------------- # Program ##### INITIALISE ##### init_options(); ##### MAIN ##### my $t = CPAN::WWW::Testers->new(%options); $t->generate; # ------------------------------------- # Subroutines sub init_options { GetOptions( \%options, 'directory|d=s', 'config|c=s', 'help|h', 'version|v' ); help(1) if($options{help}); help(0) if($options{version}); } sub help { my ($full,$mess) = @_; print "\n$mess\n" if($mess); if($full) { print < L F, F =head1 AUTHOR Original author: Leon Brocard 200?-2008 Current maintainer: Barbie 2008-present =head1 COPYRIGHT AND LICENSE Copyright (C) 2002-2008 Leon Brocard Copyright (C) 2008-2009 Barbie This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. =cut