2 # vim:ts=4:shiftwidth=4:expandtab
11 use DateTime
::Format
::ISO8601
;
16 my $opt_dir = "minicpan/";
18 my $opt_before = DateTime
->now->iso8601;
21 'help|?' => \
$opt_help,
24 "before=s" => \
$opt_before,
25 version
=> \
$opt_version,
27 pod2usage
(1) if $opt_help;
28 pod2usage
(-exitval
=> 0, -verbose
=> 2) if $opt_man;
31 print STDERR
"Version $App::RetroPAN::VERSION\n";
35 die "No time specified" if !$opt_before;
37 my $dt = DateTime
::Format
::ISO8601
->parse_datetime($opt_before);
39 print STDERR
"No modules to find\n" if !@ARGV;
41 my ($dists_required, $dist_to_url) = App
::RetroPAN
::find_deps_on_date
($dt->iso8601, @ARGV);
43 App
::RetroPAN
::make_minicpan
($opt_dir, $dists_required, $dist_to_url);
51 retropan - Makes a historic minicpan ⏳
55 $ retropan --dir minicpan/ --before 2011-02-01T00:00:00 Moose Catalyst
59 The trailing arguments are the module names to be looked up.
65 Search for distributions released before this data. Defaults to now.
70 Path of where to place our minicpan. Defaults to C<minicpan/>.
80 This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
84 Dave Lambley <dlambley@cpan.org>