Skip to content

Commit

Permalink
Fix distclean for "pm_to_blib directly" extensions.
Browse files Browse the repository at this point in the history
The values of the %pm hash already have ../../ prepended, so we
were trying to remove, for example, ../../../../lib/Exporter.pm
instead of ../../lib/Exporter.pm.

This fixes [perl #122820] wherein it was reported that a distclean
make left some build products under lib/.
  • Loading branch information
craigberry committed Sep 22, 2014
1 parent e075ae4 commit 9fa5aa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion make_ext.pl
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@ sub just_pm_to_blib {
# (which it has to deal with, as cpan/foo/bar creates
# lib/auto/foo/bar, but the EU::MM rule will only
# rmdir lib/auto/foo/bar, leaving lib/auto/foo
_unlink("../../$_")
_unlink($_)
foreach sort values %pm;
}
}
Expand Down

0 comments on commit 9fa5aa9

Please sign in to comment.