This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
7d5573d59c3d7ecfa9a0f0a589cd2ae8af113be9
[perl5.git] / cpan / Module-Build / lib / Module / Build / Platform / cygwin.pm
1 package Module::Build::Platform::cygwin;
2
3 use strict;
4 use vars qw($VERSION);
5 $VERSION = '0.3607';
6 $VERSION = eval $VERSION;
7 use Module::Build::Platform::Unix;
8
9 use vars qw(@ISA);
10 @ISA = qw(Module::Build::Platform::Unix);
11
12 sub manpage_separator {
13    '.'
14 }
15
16 # Copied from ExtUtils::MM_Cygwin::maybe_command()
17 # If our path begins with F</cygdrive/> then we use C<ExtUtils::MM_Win32>
18 # to determine if it may be a command.  Otherwise we use the tests
19 # from C<ExtUtils::MM_Unix>.
20
21 sub _maybe_command {
22     my ($self, $file) = @_;
23
24     if ($file =~ m{^/cygdrive/}i) {
25         require Module::Build::Platform::Win32;
26         return Module::Build::Platform::Win32->_maybe_command($file);
27     }
28
29     return $self->SUPER::_maybe_command($file);
30 }
31
32 1;
33 __END__
34
35
36 =head1 NAME
37
38 Module::Build::Platform::cygwin - Builder class for Cygwin platform
39
40 =head1 DESCRIPTION
41
42 This module provides some routines very specific to the cygwin
43 platform.
44
45 Please see the L<Module::Build> for the general docs.
46
47 =head1 AUTHOR
48
49 Initial stub by Yitzchak Scott-Thoennes <sthoenna@efn.org>
50
51 =head1 SEE ALSO
52
53 perl(1), Module::Build(3), ExtUtils::MakeMaker(3)
54
55 =cut