X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FExtUtils%2FMM_OS2.pm;h=73c1819f07e3dd89a4702904de80541a5f0f28a5;hb=4822030c168a634e0e2adb4eaa6369019c959730;hp=7d14ac701d403f7bd43fe10f4e5df3a3a9a99d9d;hpb=6d6be53e5cf68dd14a1fce5f754d4f875bdaba05;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/ExtUtils/MM_OS2.pm b/lib/ExtUtils/MM_OS2.pm index 7d14ac7..73c1819 100644 --- a/lib/ExtUtils/MM_OS2.pm +++ b/lib/ExtUtils/MM_OS2.pm @@ -1,16 +1,15 @@ package ExtUtils::MM_OS2; use strict; -use vars qw($VERSION @ISA); use ExtUtils::MakeMaker qw(neatvalue); use File::Spec; -$VERSION = '6.42'; +our $VERSION = '6.55_02'; require ExtUtils::MM_Any; require ExtUtils::MM_Unix; -@ISA = qw(ExtUtils::MM_Any ExtUtils::MM_Unix); +our @ISA = qw(ExtUtils::MM_Any ExtUtils::MM_Unix); =pod @@ -75,13 +74,12 @@ $self->{BASEEXT}.def: Makefile.PL if ($self->{IMPORTS} && %{$self->{IMPORTS}}) { # Make import files (needed for static build) -d 'tmp_imp' or mkdir 'tmp_imp', 0777 or die "Can't mkdir tmp_imp"; - open IMP, '>tmpimp.imp' or die "Can't open tmpimp.imp"; - my ($name, $exp); - while (($name, $exp)= each %{$self->{IMPORTS}}) { + open my $imp, '>', 'tmpimp.imp' or die "Can't open tmpimp.imp"; + while (my($name, $exp) = each %{$self->{IMPORTS}}) { my ($lib, $id) = ($exp =~ /(.*)\.(.*)/) or die "Malformed IMPORT `$exp'"; - print IMP "$name $lib $id ?\n"; + print $imp "$name $lib $id ?\n"; } - close IMP or die "Can't close tmpimp.imp"; + close $imp or die "Can't close tmpimp.imp"; # print "emximp -o tmpimp$Config::Config{lib_ext} tmpimp.imp\n"; system "emximp -o tmpimp$Config::Config{lib_ext} tmpimp.imp" and die "Cannot make import library: $!, \$?=$?";