X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=installperl;h=b7df66f5c9522b2eb7c0394dbb17f9a664eb44f5;hb=e930465f0bda9d63d97d7bcbea42ed0d09f68de3;hp=a58f8e5a5363b82de7e2f37b3b0b01d34a8b4284;hpb=2986a63f7e513cf37f46db9f211b77071260031f;p=p5sagit%2Fp5-mst-13.2.git diff --git a/installperl b/installperl index a58f8e5..b7df66f 100755 --- a/installperl +++ b/installperl @@ -30,6 +30,10 @@ use ExtUtils::Packlist; use Config; use subs qw(unlink link chmod); +if ($Config{d_umask}) { + umask(022); # umasks like 077 aren't that useful for installations +} + $Is_NetWare = $Config{osname} eq 'NetWare'; if ($Is_NetWare) { $Is_W32 = 0; @@ -694,8 +698,8 @@ sub installlib { } # ignore patch backups, RCS files, emacs backup & temp files and the - # .exists files, and .PL files. - return if $name =~ m{\.orig$|~$|^#.+#$|,v$|^\.exists|\.PL$}; + # .exists files, .PL files, and .t files. + return if $name =~ m{\.orig$|~$|^#.+#$|,v$|^\.exists|\.PL$|\.t$}; $name = "$dir/$name" if $dir ne '';