Skip to content

Commit

Permalink
Pass install_modules options through to cpanm.
Browse files Browse the repository at this point in the history
  • Loading branch information
pjcj committed Jun 12, 2012
1 parent 3126fab commit f194f4e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion utils/install_modules
Expand Up @@ -264,11 +264,13 @@ my $modules = <<EOM;
EOM

my @opts = @ARGV;

my @modules = grep /\S/, grep !/^ +#/, split /\n/, $modules;
s/^ +//, s/ +$// for @modules;
my %m; @modules = grep !$m{$_}++, @modules;

for my $mod (sort @modules)
{
system "cpanm $mod";
system "cpanm @opts $mod";
}

0 comments on commit f194f4e

Please sign in to comment.