diff options
author | Nicholas Clark <nick@ccl4.org> | 2011-11-08 14:39:41 +0100 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2011-11-18 11:08:56 +0100 |
commit | cb9cdbd1d6b9f938813cdde325c9f040c9b3e456 (patch) | |
tree | 8c509cc56e9a7912bca8c3cbf55578f64fb2d4ba /pod/buildtoc | |
parent | 45f5b240fba94effa0c3b0357368ee11ea3a7441 (diff) | |
download | perl-cb9cdbd1d6b9f938813cdde325c9f040c9b3e456.tar.gz |
buildtoc --showfiles should report the correct pathnames.
The output of --showfiles has been garbled since commit d5e2eea989a69524
refactored pod/buildtoc to no longer chdir to the pod/ directory.
Diffstat (limited to 'pod/buildtoc')
-rw-r--r-- | pod/buildtoc | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/pod/buildtoc b/pod/buildtoc index fc49da94e0..63ea252867 100644 --- a/pod/buildtoc +++ b/pod/buildtoc @@ -85,19 +85,7 @@ __USAGE__ } } if ($showfiles) { - print - join(" ", - sort { lc $a cmp lc $b } - map { - my ($v, $d, $f) = File::Spec->splitpath($_); - my @d; - @d = defined $d ? File::Spec->splitdir($d) : (); - shift @d if @d; - File::Spec->catfile(@d ? - (@d == 1 && $d[0] eq '' ? () : @d) - : "pod", $f); - } values %Build), - "\n"; + print join(" ", sort { lc $a cmp lc $b } values %Build), "\n"; exit(0); } } |