}
use strict;
-use vars qw($Is_VMS $Is_W32 $Is_OS2 $Is_Cygwin $Is_Darwin $Is_NetWare
+use vars qw($Is_VMS $Is_W32 $Is_OS2 $Is_Cygwin $Is_Darwin $Is_NetWare $Is_AmigaOS
%opts $packlist);
my $versiononly;
if ($Is_VMS) { eval 'use VMS::Filespec;' }
}
+# HP-UX (at least) needs to maintain execute permissions
+# on dynamically-loadable libraries. So we do it for all.
+#
+# In AmigaOS, the 0777 means 'rwed' (e = execute, d = delete),
+# (not 'rwx') and having the 'd' makes updates more convenient.
+my $SO_MODE = $Is_AmigaOS ? 0777 : 0555;
+my $NON_SO_MODE = $Is_AmigaOS ? 0666 : 0444;
+
my $scr_ext = ($Is_VMS ? '.Com' : $Is_W32 ? '.bat' : '');
use File::Find;
if ($Is_Cygwin) {
$perldll = $libperl;
} else {
- $perldll = 'perl5'.$Config{patchlevel}.'.'.$dlext;
+ $perldll = 'perl5'.$Config{patchlevel}.'.'.$so;
}
if ($dlsrc ne "dl_none.xs") {
( copy("$installbin/$libperl", $coredll) &&
push(@corefiles, $instcoredll)
)
+} elsif ($Is_W32) {
+ @corefiles = <*.h>;
} else {
# [als] hard-coded 'libperl' name... not good!
@corefiles = <*.h libperl*.* perl*$Config{lib_ext}>;
# AIX needs perl.exp installed as well.
push(@corefiles,'perl.exp') if $^O eq 'aix';
}
+
+
foreach my $file (@corefiles) {
- # HP-UX (at least) needs to maintain execute permissions
- # on dynamically-loadable libraries. So we do it for all.
if (copy_if_diff($file,"$installarchlib/CORE/$file")) {
if ($file =~ /\.(\Q$so\E|\Q$dlext\E)$/) {
strip("-S", "$installarchlib/CORE/$file") if $^O eq 'darwin';
- chmod(0555, "$installarchlib/CORE/$file");
+ chmod($SO_MODE, "$installarchlib/CORE/$file");
} else {
- chmod(0444, "$installarchlib/CORE/$file");
+ chmod($NON_SO_MODE, "$installarchlib/CORE/$file");
}
}
}
+if ($Is_W32) { #linking lib isn't made in root but in CORE on Win32
+ @corefiles = <lib/CORE/libperl*.* lib/CORE/perl*$Config{lib_ext}>;
+ my $dest;
+ copy_if_diff($_,($dest = $installarchlib.substr($_,3))) &&
+ chmod($NON_SO_MODE, $dest) foreach @corefiles;
+}
+
# Install main perl executables
# Make links to ordinary names if installbin directory isn't current directory.
(my $base = $_) =~ s#.*/##;
copy($_, "$installscript/$base");
chmod(0755, "$installscript/$base");
+ if ($Is_AmigaOS) {
+ my $amigapath = unixtoamiga("$installscript/$base");
+ amigaprotect($amigapath,"+s");
+ }
}
for (@tolink) {
return if $name =~ /^(?:cpan|instmodsh|prove|corelist|ptar|ptardiff|ptargrep|zipdetails)\z/;
# ignore the Makefiles
return if $name =~ /^makefile$/i;
- # ignore the test extensions
- return if $dir =~ m{\bXS/(?:APItest|Typemap)\b};
+ # ignore the test extensions, dont install PPPort.so/.dll
+ return if $dir =~ m{\b(?:XS/(?:APItest|Typemap)|Devel/PPPort)\b};
return if $name =~ m{\b(?:APItest|Typemap)\.pm$};
# ignore the build support code
return if $name =~ /\bbuildcustomize\.pl$/;
return if $name eq 'ExtUtils/XSSymSet.pm' and !$Is_VMS;
+ #blead comes with version, blead isn't 5.8/5.6
+ return if $name eq 'ExtUtils/MakeMaker/version/regex.pm';
+
my $installlib = $installprivlib;
if ($dir =~ /^auto\// ||
($name =~ /^(.*)\.(?:pm|pod)$/ && $archpms{$1}) ||
if (copy_if_diff($_, "$installlib/$name")) {
strip("-S", "$installlib/$name")
if $^O eq 'darwin' and /\.(?:so|$dlext|a)$/;
- chmod(/\.(so|$dlext)$/ ? 0555 : 0444, "$installlib/$name");
+ chmod(/\.(so|$dlext)$/ ? $SO_MODE : $NON_SO_MODE,
+ "$installlib/$name");
}
}
}
}
}
-# Local variables:
-# cperl-indent-level: 4
-# indent-tabs-mode: nil
-# End:
-#
# ex: set ts=8 sts=4 sw=4 et: