X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FApp%2FFatPacker.pm;h=aa3caefffe9a9b3b011ffbd61907c7eaa86686cf;hb=002ecfea279e0e4db46718a0b499f76155439e16;hp=e8750ec316d95c993f27ebfe7b86e032ef0336f5;hpb=3e4dadce0f09054d985028066c0690951e45237b;p=p5sagit%2FApp-FatPacker.git diff --git a/lib/App/FatPacker.pm b/lib/App/FatPacker.pm index e8750ec..aa3caef 100644 --- a/lib/App/FatPacker.pm +++ b/lib/App/FatPacker.pm @@ -13,7 +13,7 @@ use File::Copy qw(copy); use File::Path qw(make_path remove_tree); use B qw(perlstring); -our $VERSION = '0.009001'; # 0.9.1 +our $VERSION = '0.009003'; # 0.9.3 $VERSION = eval $VERSION; @@ -171,7 +171,8 @@ sub script_command_file { unshift @INC, sub { if (my $fat = $fatpacked{$_[1]}) { - open my $fh, '<', \$fat; + open my $fh, '<', \$fat + or die "FatPacker error loading $_[1] (could be a perl installation issue?)"; return $fh; } return @@ -182,7 +183,7 @@ sub script_command_file { my @segments = map { (my $stub = $_) =~ s/\.pm$//; my $name = uc join '_', split '/', $stub; - my $data = $files{$_}; $data =~ s/^/ /mg; + my $data = $files{$_}; $data =~ s/^/ /mg; $data =~ s/(?packlists - $ fatpack tree fatlib `cat packlists` + $ fatpack packlists-for `cat fatpacker.trace` >packlists + $ fatpack tree `cat packlists` $ (fatpack file; cat myscript.pl) >myscript.packed.pl See the documentation for the L script itself for more information.