diff options
author | Larry Wall <lwall@netlabs.com> | 1991-06-06 23:28:07 +0000 |
---|---|---|
committer | Larry Wall <lwall@netlabs.com> | 1991-06-06 23:28:07 +0000 |
commit | 352d5a3ab0aab9889c59e847643d265e062cec0b (patch) | |
tree | e0189b7c762b8e87cf461b329640d6efdfab3520 /installperl | |
parent | 6e21c824d91ef0b4ae60b95b347e344e5bb4d38a (diff) | |
download | perl-352d5a3ab0aab9889c59e847643d265e062cec0b.tar.gz |
perl 4.0 patch 7: patch #4, continued
See patch #4.
Diffstat (limited to 'installperl')
-rw-r--r-- | installperl | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/installperl b/installperl index 37f19cd9ea..633ff266a1 100644 --- a/installperl +++ b/installperl @@ -6,8 +6,8 @@ while (@ARGV) { shift; } -@scripts = 'h2ph'; -@manpages = ('perl.man', 'h2ph.man'); +@scripts = ('h2ph', 'x2p/s2p', 'x2p/find2perl'); +@manpages = ('perl.man', 'h2ph.man', 'x2p/a2p.man', 'x2p/s2p.man'); $version = sprintf("%5.3f", $]); $release = substr($version,0,3); @@ -72,6 +72,14 @@ if ($bdev != $ddev || $bino != $dino) { &link("$installbin/sperl$ver", "$installbin/suidperl") if $d_dosuid; } +($bdev,$bino) = stat($installbin); +($ddev,$dino) = stat('x2p'); + +if ($bdev != $ddev || $bino != $dino) { + &unlink("$installbin/a2p"); + &cmd("cp x2p/a2p $installbin/a2p"); +} + # Make some enemies in the name of standardization. :-) ($udev,$uino) = stat("/usr/bin"); @@ -85,11 +93,11 @@ if (-w _ && ($udev != $ddev || $uino != $dino) && !$nonono) { # Install scripts. -&makedir($scriptdir); +&makedir($installscr); for (@scripts) { - &cmd("cp $_ $scriptdir"); - &chmod(0755, "$scriptdir/$_"); + &cmd("cp $_ $installscr"); + s#.*/##; &chmod(0755, "$installscr/$_"); } # Install library files. @@ -111,6 +119,7 @@ if ($mansrc ne '') { if ($mdev != $ddev || $mino != $dino) { for (@manpages) { ($new = $_) =~ s/man$/$manext/; + $new =~ s#.*/##; print STDERR " Installing $mansrc/$new\n"; next if $nonono; open(MI,$_); |