9 for my $val (qw
/PERL5LIB PERL_MB_OPT PERL_LOCAL_LIB_ROOT PERL_MM_OPT/) {
10 delete $ENV{$val} if defined $ENV{$val};
14 ####################################
17 for my $module (@ARGV) {
19 my $meta = BuildHelper
::get_meta_for_dir
($module);
20 my $deps = BuildHelper
::get_deps_from_meta
($meta);
21 push @
{$modules}, keys %{$deps};
24 my $dir = BuildHelper
::unpack($module);
25 my $meta = BuildHelper
::get_meta_for_dir
($dir);
26 my $deps = BuildHelper
::get_deps_from_meta
($meta);
27 push @
{$modules}, keys %{$deps};
29 push @
{$modules}, $module;
33 ####################################
36 chdir('src') or die("cannot change dir 'src': $!");
37 for my $module (@
{$modules}) {
38 if($module =~ m/^[\w\.\-\+]+(\.gz|\.zip|\.tgz)$/g) {
39 BuildHelper
::download_src
($module);
40 print "downloaded $module\n";
45 $module =~ s/\.pm$//g;
46 print $module." is a core module\n" if BuildHelper
::is_core_module
($module);
47 $downloaded = BuildHelper
::download_module
($module, undef, 1);
49 chdir('..') or die("cannot change dir '..': $!");
51 exit unless defined $downloaded;
53 # print result of all downloaded files
54 if(scalar @
{$downloaded} > 0) {
56 print "please add the following tarballs to the Makefile:\n";
57 print join("\n", @
{$downloaded});
60 print "no new packages downloaded\n";