summaryrefslogtreecommitdiff
path: root/installperl
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2000-10-10 21:40:49 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-10-10 21:40:49 +0000
commitd56c570797c673478b3a116a0ec3f47317f46643 (patch)
treecec689f40716ba301b2ac6a035c384765004032f /installperl
parent22e779421fc9644bbe208a576056f86ee9e45388 (diff)
downloadperl-d56c570797c673478b3a116a0ec3f47317f46643.tar.gz
Reapply Andy's patch and regen Configure.
p4raw-id: //depot/perl@7196
Diffstat (limited to 'installperl')
-rwxr-xr-xinstallperl21
1 files changed, 11 insertions, 10 deletions
diff --git a/installperl b/installperl
index c65af5afa9..99d376fd2c 100755
--- a/installperl
+++ b/installperl
@@ -60,6 +60,8 @@ while (@ARGV) {
shift;
}
+$versiononly = 1 if $Config{versiononly};
+
my @scripts = qw(utils/c2ph utils/h2ph utils/h2xs utils/perlbug utils/perldoc
utils/pl2pm utils/splain utils/perlcc utils/dprofpp
x2p/s2p x2p/find2perl
@@ -364,26 +366,25 @@ if (! $versiononly && (-f 'cppstdin') && (! samepath($installbin, '.'))) {
chmod(0755, "$installbin/cppstdin");
}
-# Install scripts.
+if (! $versiononly) {
+ # Install scripts.
-mkpath($installscript, $verbose, 0777);
+ mkpath($installscript, $verbose, 0777);
-if (! $versiononly) {
for (@scripts) {
(my $base = $_) =~ s#.*/##;
copy($_, "$installscript/$base");
chmod(0755, "$installscript/$base");
}
-}
-
-# pstruct should be a link to c2ph
-if (! $versiononly) {
+ # pstruct should be a link to c2ph
safe_unlink("$installscript/pstruct$scr_ext");
if ($^O eq 'dos' or $Is_VMS or $^O eq 'transit') {
- copy("$installscript/c2ph$scr_ext", "$installscript/pstruct$scr_ext");
+ copy("$installscript/c2ph$scr_ext",
+ "$installscript/pstruct$scr_ext");
} else {
- link("$installscript/c2ph$scr_ext", "$installscript/pstruct$scr_ext");
+ link("$installscript/c2ph$scr_ext",
+ "$installscript/pstruct$scr_ext");
}
}
@@ -391,7 +392,7 @@ if (! $versiononly) {
# ($installprivlib/pods for cygwin).
my $pod = $Is_Cygwin ? 'pods' : 'pod';
-unless ( $versiononly && !($installprivlib =~ m/\Q$ver/)) {
+if ( !$versiononly || ($installprivlib =~ m/\Q$ver/)) {
mkpath("${installprivlib}/$pod", $verbose, 0777);
# If Perl 5.003's perldiag.pod is there, rename it.