Skip to content

Commit 7e5aefa

Browse files
committed
Respect $Config{man1ext}/$Config{man3ext}
1 parent 78cfb1e commit 7e5aefa

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/Module/Build/Base.pm

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3223,7 +3223,8 @@ sub ACTION_manpages {
32233223

32243224
sub manify_bin_pods {
32253225
my $self = shift;
3226-
my %podman_args = (section => 1, @_); # binaries go in section 1
3226+
my $section = $self->config('man1ext');
3227+
my %podman_args = (section => $section, @_);
32273228

32283229
my $files = $self->_find_pods( $self->{properties}{bindoc_dirs},
32293230
exclude => [ $self->file_qr('\.bat$') ] );
@@ -3250,7 +3251,8 @@ sub manify_bin_pods {
32503251

32513252
sub manify_lib_pods {
32523253
my $self = shift;
3253-
my %podman_args = (section => 3, @_); # libraries go in section 3
3254+
my $section = $self->config('man3ext');
3255+
my %podman_args = (section => $section, @_);
32543256

32553257
my $files = $self->_find_pods($self->{properties}{libdoc_dirs});
32563258
return unless keys %$files;

0 commit comments

Comments
 (0)