diff options
author | Nicholas Clark <nick@ccl4.org> | 2011-12-24 14:52:50 +0100 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2012-01-02 12:18:54 +0100 |
commit | d148da4f615d7b0f2e4d5114a4fb4f1630d8a341 (patch) | |
tree | 797c51e8cff09723969e8e70ddef9fbbd747f204 /installperl | |
parent | 8473bff152d23bc1d94791dc06c4164c47e6be60 (diff) | |
download | perl-d148da4f615d7b0f2e4d5114a4fb4f1630d8a341.tar.gz |
In installperl, add the trailing / to the value held in $::depth.
This should make future refactoring simpler.
Diffstat (limited to 'installperl')
-rwxr-xr-x | installperl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/installperl b/installperl index a6bd023bd1..af1287a399 100755 --- a/installperl +++ b/installperl @@ -684,7 +684,7 @@ sub copy { sub installlib { my $dir = $File::Find::dir; $dir =~ s#^\.(?![^/])/?##; - local($depth) = $dir ? "lib/$dir" : "lib"; + local($depth) = $dir ? "lib/$dir/" : "lib/"; my $name = $_; @@ -825,7 +825,7 @@ sub copy_if_diff { if ($force || compare($from, $to) || $opts{notify}) { safe_unlink($to); # In case we don't have write permissions. if ($opts{notify}) { - $from = $depth . "/" . $from if $depth; + $from = $depth . $from if $depth; } if ($perlpodbadsymlink && $from =~ m!^pod/perl(.+)\.pod$!) { $from = "README.$1"; |