use File::Copy ();
use File::Path ();
use ExtUtils::Packlist;
--use Config;
use subs qw(unlink link chmod);
use vars qw($packlist);
Config => 1,
);
--if ($^O eq 'dos') {
++if ($osname eq 'dos') {
push(@scripts,'djgpp/fixpmain');
$archpms{config} = $archpms{filehand} = 1;
}
copy("perlshr$exe_ext", "$installbin/${perl}shr$exe_ext");
chmod(0755, "$installbin/${perl}shr$exe_ext");
}
--elsif ($^O eq 'mpeix') {
++elsif ($osname eq 'mpeix') {
# MPE lacks hard links and requires that executables with special
# capabilities reside in the MPE namespace.
safe_unlink("$installbin/perl$ver$exe_ext", $Config{perlpath});
@corefiles = <*.h libperl*.*>;
# AIX needs perl.exp installed as well.
-- push(@corefiles,'perl.exp') if $^O eq 'aix';
-- if ($^O eq 'mpeix') {
++ push(@corefiles,'perl.exp') if $osname eq 'aix';
++ if ($osname eq 'mpeix') {
# MPE needs mpeixish.h installed as well.
mkpath("$installarchlib/CORE/mpeix", 1, 0777);
push(@corefiles,'mpeix/mpeixish.h');
if (! $versiononly) {
safe_unlink("$installscript/pstruct$scr_ext");
-- if ($^O eq 'dos' or $Is_VMS) {
++ if ($osname eq 'dos' or $Is_VMS or $osname eq 'transit') {
copy("$installscript/c2ph$scr_ext", "$installscript/pstruct$scr_ext");
++ chmod(0755, "$installscript/pstruct$scr_ext");
} else {
link("$installscript/c2ph$scr_ext", "$installscript/pstruct$scr_ext");
}