Skip to content

Commit

Permalink
version::vpp vs Version::Requirements sadness
Browse files Browse the repository at this point in the history
  • Loading branch information
miyagawa committed Jun 25, 2011
1 parent f55c97a commit 89c0d22
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion script/build.PL
Expand Up @@ -19,7 +19,7 @@ print STDERR "Generating cpanm from script/cpanm.PL\n";
while (<$in>) {
next if /Auto-removed/;
s/DEVELOPERS:.*/DO NOT EDIT -- this is an auto generated file/;
s/.*__FATPACK__/`$^X -e "use App::FatPacker -run_script" file`/e;
s/.*__FATPACK__/zomg_hfs(scalar `$^X -e "use App::FatPacker -run_script" file`)/e;
print $out $_;
}

Expand All @@ -30,3 +30,10 @@ rename "cpanm.tmp", "cpanm";
chmod 0755, "cpanm";

END { unlink "cpanm.tmp" }

# HFS is case sensitive, we have fatlib/version that contains Version/Requirements.pm :(
sub zomg_hfs {
local $_ = shift;
s!version/Requirements.pm!Version/Requirements.pm!;
return $_;
}

0 comments on commit 89c0d22

Please sign in to comment.