#!/usr/bin/perl -w use strict; my $VERSION = '0.04'; #---------------------------------------------------------------------------- # Library Modules use lib qw(../lib lib); use Cwd; use Getopt::ArgvFile default=>1; use Getopt::Long; use CPAN::WWW::Testers::Generator '0.26'; #---------------------------------------------------------------------------- # Variables my %options; #---------------------------------------------------------------------------- # Progam init_options(); my $directory = $options{directory} || cwd(); my $t = CPAN::WWW::Testers::Generator->new( ignore => $options{ignore}, nostore => $options{nostore}, directory => $directory, logfile => $directory . '/logs/cpanstats.log' ); if($options{rebuild}) { $t->rebuild($options{start},$options{end}); } else { $t->generate; } # ------------------------------------- # Subroutines sub init_options { GetOptions( \%options, 'directory|d=s', 'ignore|i', 'nostore|n', 'rebuild|r', 'start=i', 'end=i', 'help|h', 'version|V' ); _help(1) if($options{help}); _help(0) if($options{version}); } sub _help { my $full = shift; if($full) { print <, L F, F, F =head1 AUTHOR Barbie, for Miss Barbell Productions . =head1 COPYRIGHT AND LICENSE Copyright (C) 2005-2008 Barbie for Miss Barbell Productions. This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. =cut